Displaying 2 results from an estimated 2 matches for "wxstff".
Did you mean:
stff
2007 Jan 04
3
grid control example doesn''t work on osx.4
Hi,
I am trying to use wxruby2-preview (0.0.38) on my intel macbook
running os10.4.8. I am having a beast of a time running the examples
in the tutorials. The super basic frame example worked but the
simple grid tutorial bombs with the following message:
------
[WhiteGhost:~/tmp/wxStff] hjw$ ruby ./grid.rb
/usr/local/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.38-i686-
darwin8.4.1/lib/wx/classes/app.rb:10: warning: method redefined;
discarding old on_assert
./grid.rb:10: [BUG] Bus Error
ruby 1.8.4 (2005-12-24) [i686-darwin8.8.3]
Abort trap
---------------
The code is below,...
2007 Jan 09
6
help w/push_event_handler plus doc update request
...kwards, but most of my Ruby experience is via writing Rails web
apps and I''m just starting to dig in to cooking up some non-trivial
stand alone ruby apps.
-------
#!/usr/bin/env ruby -w
#
require ''rubygems''
require ''wx''
load ''/Users/hjw/tmp/wxStff/mainframe.wrb''
class TinyApp < Wx::App
def on_init
frame = MainFrame.new("painter")
setup_frame(frame)
frame.show()
end
def setup_frame(frame) # setup my application''s stuff here
frame <----.push_event_handler here---->
clas...