From: nagai@... Date: 2002-03-28T11:20:35+09:00 Subject: RE: Error calling Tk in a loop Hi, From: Subject: RE: Error calling Tk in a loop Date: Wed, 27 Mar 2002 22:49:29 +0900 Message-ID: > > If your purpose is only to generate AlertBox windows, > > you should use one TkToplevel widget for one AlertBox window. > > There may be multiple windows at the same time. Is this not possible > without running multiple Tk interpreter processes? I said "use TkToplevel widget". :-) Please try this. ------------------------------------ require 'tk' TkRoot.new.title 'root widget' TkToplevel.new.title 'toplevel widget 1' TkToplevel.new{|t| title 'top2' TkButton.new(t, 'text'=>'QUIT', 'command'=>proc{exit}).pack } Tk.mainloop ------------------------------------ -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)