From: michael libby Date: 2002-07-28T09:31:09+09:00 Subject: Re: Ruby/Tk new windows -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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? right. only one root per application. new windows will be children, but must be of TkToplevel class. r = TkRoot.ew new_window = TkToplevel.new(r) 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 - -- ++++++++++++++++++++++++++++++++++++++++++ Michael C. Libby public key: http://www.ichimunki.com/public_key.txt web site: http://www.ichimunki.com ++++++++++++++++++++++++++++++++++++++++++ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9QzkE4ClW9KMwqnMRAsdLAJ4iZR/j1BcgIaIvmLNGr9xDZMou3QCgmOBq p324Oo2zclV+C8aWDH4UmUk= =spnz -----END PGP SIGNATURE-----