From: james@... Date: 2002-03-27T22:49:29+09:00 Subject: RE: Error calling Tk in a loop > From: nagai@ai.kyutech.ac.jp [mailto:nagai@ai.kyutech.ac.jp] > The problem is that Tk.mainloop doesn't return while the root widget > alives. Therefore, this initialize method does not finish till the > root widget is destroyed. If the root widget is destroyed, Tk extension > is finished and cannot generate new widgets. But shouldn't the next call to AlertBox.new create a *new* root widget? > Well, Ruby/Tk on Ruby 1.6.7 has Tk.restart method. I don't recommend, > but it can restart Tk extension and generate new root widget on same > Tcl/Tk interpreter. > 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? Thanks, James > -- > Hidetoshi NAGAI > (nagai@ai.kyutech.ac.jp) >