Hello,
I''ve downloaded wxruby onto windows (ruby 1.8.6 (2007-03-13 patchlevel
0)
[i386-mswin32]).
All samples are working fine, except for wizard.rb, which gets:
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/keyword_ctors.rb:201:in
`initialize'': Error initializing #<Wx::Wizard:0x2f3fed8>
(ArgumentError)
Sent parameters: [#<MyFrame:0x2f403b0>, -1, "The WxRuby Wizard",
#<Wx::Point: (-1, -1)>, #<Wx::Size: (-1, -1)>, 536877056]
Correct parameters are:
title (String)
bitmap (Wxruby2::Bitmap)
pos (Wxruby2::Point)
size (Wxruby2::Size)
style (Fixnum)
from wizard.rb:37:in `new''
from wizard.rb:37:in `initialize''
from wizard.rb:70:in `new''
from wizard.rb:70:in `on_init''
from wizard.rb:80:in `main_loop''
from wizard.rb:80
What am I missing here?
Thanks -- this newbie appreciates your help!
Peralta
peng.chen
2007-Oct-14 06:22 UTC
[wxruby-users] Newbie can''t get sample/etc/wizard.rb to work
bug? wxruby-1.9.0-i386-mswin32/wizard.rb is working good On 10/14/07, peralta at sonic.net <peralta at sonic.net> wrote:> > Hello, > > I''ve downloaded wxruby onto windows (ruby 1.8.6 (2007-03-13 patchlevel 0) > [i386-mswin32]). > > All samples are working fine, except for wizard.rb, which gets: > > C:/Program > Files/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32 > /lib/wx/keyword_ctors.rb:201:in > `initialize'': Error initializing #<Wx::Wizard:0x2f3fed8> (ArgumentError) > Sent parameters: [#<MyFrame:0x2f403b0>, -1, "The WxRuby Wizard", > #<Wx::Point: (-1, -1)>, #<Wx::Size: (-1, -1)>, 536877056] > Correct parameters are: > title (String) > bitmap (Wxruby2::Bitmap) > pos (Wxruby2::Point) > size (Wxruby2::Size) > style (Fixnum) > from wizard.rb:37:in `new'' > from wizard.rb:37:in `initialize'' > from wizard.rb:70:in `new'' > from wizard.rb:70:in `on_init'' > from wizard.rb:80:in `main_loop'' > from wizard.rb:80 > > What am I missing here? > > Thanks -- this newbie appreciates your help! > > Peralta > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20071014/31f0eec4/attachment-0001.html
Mario Steele
2007-Oct-14 21:18 UTC
[wxruby-users] Newbie can''t get sample/etc/wizard.rb to work
Hello Peralta, This is a current bug in wxRuby 1.9.1, dealing with the new way to pass paramaters to the constructors for the class. Currently, there is a Mis-match in documentation, and the way the constructor keywords are setup for Wx::Wizard. It has already been discussed, and is being looked into further. So hopefully, we will have a patch for it by the 1.9.2 release. So rest assured, your not missing anything. ;-) Mario Steele peralta at sonic.net wrote:> Hello, > > I''ve downloaded wxruby onto windows (ruby 1.8.6 (2007-03-13 patchlevel 0) > [i386-mswin32]). > > All samples are working fine, except for wizard.rb, which gets: > > C:/Program > Files/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/keyword_ctors.rb:201:in > `initialize'': Error initializing #<Wx::Wizard:0x2f3fed8> (ArgumentError) > Sent parameters: [#<MyFrame:0x2f403b0>, -1, "The WxRuby Wizard", > #<Wx::Point: (-1, -1)>, #<Wx::Size: (-1, -1)>, 536877056] > Correct parameters are: > title (String) > bitmap (Wxruby2::Bitmap) > pos (Wxruby2::Point) > size (Wxruby2::Size) > style (Fixnum) > from wizard.rb:37:in `new'' > from wizard.rb:37:in `initialize'' > from wizard.rb:70:in `new'' > from wizard.rb:70:in `on_init'' > from wizard.rb:80:in `main_loop'' > from wizard.rb:80 > > What am I missing here? > > Thanks -- this newbie appreciates your help! > > Peralta > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > >
Alex Fenton
2007-Oct-15 18:57 UTC
[wxruby-users] Newbie can''t get sample/etc/wizard.rb to work
Hi peralta at sonic.net wrote:> I''ve downloaded wxruby onto windows (ruby 1.8.6 (2007-03-13 patchlevel 0) > [i386-mswin32]). > > All samples are working fine, except for wizard.rb, which gets: >Yep, this was a bug that crept in version 1.9.1. It''s now fixed in Subversion for the next release. Thanks for the report, sorry for the trouble alex