Forum: Ruby-Gnome 2 Modular Child Windows with Glade and Visual Ruby

Posted by Aaron Ram (lazer_rash)
on 2013-03-04 19:48
I'm currently writing a little RSA encoding program for school, and I
seem to be having trouble calling up a child window. The error is in the
second class, the show_window() method in the second class. The method
works just fine in the first class, but when I run it and then hit the
button that should trigger the second window, I get this error:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vrlib-0.0.33/lib/GladeGUI.rb:330:in
`show_window': undefined method `show_all' for nil:NilClass
I am very stuck and help is appreciated. The full code and program can
be found on github here;
https://github.com/lazer-rash/briggs-is-cool.git Thank you all in
advance.
Posted by Eric C. (eric_c)
on 2013-03-05 04:19
Hi:

You must have renamed the top window in glade.  The top window must 
always be named the default "window1"

E
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.