Displaying 1 result from an estimated 1 matches for "gems_load".
Did you mean:
gems_loaded
2007 Oct 04
1
wxRuby: MemoryDC problems...
...)
from dc_draw_line.rb:30:in `on_init''
...
What am I doing wrong? Is MemoryDC not implemented yet in WxRuby
1.9.1? It''s in the documentation, but I know large chunks of that are
auto-generated...
My code is below. Any advice would be most appreciated!
-Jay
gems_loaded = false
begin
require ''wx''
rescue LoadError
if gems_loaded == false
require ''rubygems''
gems_loaded = true
retry
else
raise
end
end
class MyApp < Wx::App
def on_init
#Create the top window.
frame = Wx::Frame.new(nil, :size => [300, 300])...