# Modular Child Windows with Glade and Visual Ruby

**URL:** <https://www.ruby-forum.com/t/modular-child-windows-with-glade-and-visual-ruby/227112>\
**Category:** Ruby-Gnome 2\
**Created:** [March 4, 2013, 7:48pm UTC](https://www.ruby-forum.com/t/modular-child-windows-with-glade-and-visual-ruby/227112 "2013-03-04T19:48:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazer\_rash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/90ced4/32.png) [@lazer\_rash](https://www.ruby-forum.com/u/lazer_rash)\
**Post date:** [March 4, 2013, 7:48pm UTC](https://www.ruby-forum.com/t/modular-child-windows-with-glade-and-visual-ruby/227112/1 "2013-03-04T19:48:32Z")

</div>

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;  
[GitHub - lazer-rash/briggs-is-cool: he really is](https://github.com/lazer-rash/briggs-is-cool.git) Thank you all in  
advance.

---

<div class="post-metadata">

**Author:** ![lazer\_rash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/90ced4/32.png) [@lazer\_rash](https://www.ruby-forum.com/u/lazer_rash)\
**Post date:** [March 5, 2013, 4:19am UTC](https://www.ruby-forum.com/t/modular-child-windows-with-glade-and-visual-ruby/227112/2 "2013-03-05T04:19:07Z")

</div>

Hi:

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

E
