# Newbie can't get sample/etc/wizard.rb to work

**URL:** <https://www.ruby-forum.com/t/newbie-cant-get-sample-etc-wizard-rb-to-work/117141>\
**Category:** wxRuby\
**Created:** [October 13, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/newbie-cant-get-sample-etc-wizard-rb-to-work/117141 "2007-10-13T19:42:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 13, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/newbie-cant-get-sample-etc-wizard-rb-to-work/117141/1 "2007-10-13T19:42:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 14, 2007, 8:23am UTC](https://www.ruby-forum.com/t/newbie-cant-get-sample-etc-wizard-rb-to-work/117141/2 "2007-10-14T08:23:20Z")

</div>

bug?  
wxruby-1.9.0-i386-mswin32/wizard.rb is working good

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 14, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/newbie-cant-get-sample-etc-wizard-rb-to-work/117141/3 "2007-10-14T23:20:28Z")

</div>

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 S.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 15, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/newbie-cant-get-sample-etc-wizard-rb-to-work/117141/4 "2007-10-15T20:58:29Z")

</div>

Hi

removed\_email\_address@domain.invalid 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
