From: nagai@... Date: 2002-03-28T13:12:45+09:00 Subject: RE: Error calling Tk in a loop Hi, From: Subject: RE: Error calling Tk in a loop Date: Thu, 28 Mar 2002 11:55:50 +0900 Message-ID: > Sorry. I got confused by "use one TkToplevel widget for one AlertBox > window" :-) I'm sorry. I can speak only a little English. > Thank you, that may help me sort things out. What I've been seeing, so far, > is that there's always an extra window floating around. I'm looking for > a way to have a single window appear; the user closes it. Some time later, > another > single window appears, and the user closes it. Perhaps before a window is > closed, another is created. And so on. But I'm seeing that there is always a > root widget that must stay alive for things like TkToplevel widgets to > appear. You can wait the toplevel widget is destroyed. But, for a simple dialog, Tk.messageBox is a better solution. > So far, I've manage to get it at least minimized; I haven't had time yet to > find how to make it invisible (if that's possible). Please use {TkRoot/TkToplevel}#withdraw method. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)