From: Phlip Date: 2009-02-05T00:34:37+09:00 Subject: Re: A Tk window Albert Schlef wrote: >> Tk.mainloop() >> Tk.restart() > > Superb! That solved my problem. Thanks. Read and obey the post by Hidetoshi NAGAI. He maintains RubyTk, AFAIK! > (BTW, suppose I'll be running my code inside a Tk application. In that > case I wouldn't want to execute Tk.mainloop() (and restart(), of course) > at all. Any way to find out if we're already running in a Tk > application?) If a GUI is already running, then if you block its main loop, the user will see the window lock up. So use @v.wait... > GTK requires you to memorize CONSTANTS. > Shoes doesn't have mature widgets. FOX is a pain to compile. So we go > with Tk. Yay!