search for: minimalapp

Displaying 6 results from an estimated 6 matches for "minimalapp".

2004 Dec 31
5
catch keystrokes
is it possible to intercept keystrokes using wxruby?
2007 Aug 23
7
TaskBarIcon gives Typerror
...o del.icio.us has no intresting links. Do you know any good website or book about wxruby? My problem at the moment is, I wanna test the TaskBarIcon on Gnome and so I did: #!/usr/bin/env ruby $Verbose=true require ''rubygems'' require ''wx'' include Wx class MinimalApp < App def on_init mytask = TaskBarIcon.new mytask.set_icon(''shutdown.svg'',''thats my tooltip'') end end MinimalApp.new.main_loop #eof the doc tells about set_icon: Boolean set_icon(Icon icon, String tooltip) Sets the...
2009 Mar 04
0
[ wxruby-Bugs-24288 ] rb_str2cstr undefined with Ruby 1.9 and Ubuntu Linux
...adError) from /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.0-x86-linux/lib/wx.rb:12:in `<top (required)>'' from ex1.rb:1:in `require'' from ex1.rb:1:in `<main>'' I have tried this simple example program: require "wx" include Wx class MinimalApp < App def on_init Frame.new(nil, -1, "The Bare Minimum").show() end end MinimalApp.new.main_loop -Thomas ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid...
2006 Sep 17
1
run.rb
This is a first stab at a run.rb file that will let you run a sample in the bigdemo directory by itself. You have to add the following to the bottom of every sample file: if __FILE__ == $0 load "run.rb" run(File.basename($0)) end Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2007 Aug 22
2
Can''t change button-size?
...nt)} show() end def message(text, title) m = Wx::MessageDialog.new(self, text, title, Wx::OK | Wx::ICON_INFORMATION) m.show_modal() end def on_button(event) message("event recieved!!", "Button event") end end class MinimalApp < App def on_init MyFrame.new end end MinimalApp.new.main_loop #eof Can someone help me with this? greets -- kazaam <kazaam@oleco.net>
2007 Jan 30
2
error finding library when running test program
...set_icon(Wx::Icon.new("./icons/mondrian.xpm")) when 2 set_icon(Wx::Icon.new("./icons/ogl.xpm")) when 3 set_icon(Wx::Icon.new("./icons/smiley.xpm")) end end end end class MinimalApp < Wx::App def on_init IconFrame.new end end MinimalApp.new.main_loop ----- END OF PROGRAM _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users