Ruby/Tk new windows

Within a ruby/tk gui I would like to create another window, seperate from
the main/root window. Can there be only one TkRoot?

I didn’t see anything in the ruby source, nor the pickaxe book, nor
several FAQs.

Any pointers?

right. only one root per application. new windows will be children, but
must be of TkToplevel class.

r = TkRoot.ew
new_window = TkToplevel.new®

good docs at http://www.tcl.tk (Tcl/Tk specific, but you’ll learn to
translate quickly)-- also RAA has ruby-tk-examples (standard
cross-language Tk ‘widget’ demo) that is very informative.

  • -michael

···

On Saturday 27 July 2002 17:24, Kurt V. Hindenburg wrote:

Within a ruby/tk gui I would like to create another window, seperate
from the main/root window. Can there be only one TkRoot?

I didn’t see anything in the ruby source, nor the pickaxe book, nor
several FAQs.

Any pointers?

++++++++++++++++++++++++++++++++++++++++++
Michael C. Libby x@ichimunki.com
public key: http://www.ichimunki.com/public_key.txt
web site: http://www.ichimunki.com
++++++++++++++++++++++++++++++++++++++++++