Displaying 2 results from an estimated 2 matches for "app_klass".
Did you mean:
app_flash
2007 Oct 23
3
CheckListBox : delete method bug !
...is a sample code that shows the problem (for wxRuby 1.9.1 with
some copy/paste of wxRuby 1.9.2 for convenience). I''m running on
Windows 2000.
require "wx"
######################################
# Copy/Paste of wxRuby 1.9.2 additions
class Wx::App
def self.run(&block)
app_klass = Class.new(self)
app_klass.class_eval do
define_method(:on_init, &block)
end
the_app = app_klass.new
the_app.main_loop
end
end
class Wx::CommandEvent
alias :get_index :get_int
end
# End of Copy/Paste of wxRuby 1.9.2 additions
#########################################...
2007 Sep 27
10
Adding more sugar to wxSugar
Hi all,
New wxRuby event handling offers the choice between using blocks or
methods seamlessly and easily. This is great respectively for simple
app and more complex app.
Nevertheless, currently the creation of an application, a frame, or a
dialog is very tedious for simple app :
- you need to create a subclass of Wx::App, Wx::Frame ...
- you need to put the initialization code in the initialize