Re: [Tkinter-discuss] main window closing when dialogs are open

2006-10-17 Thread Bencsik Roland
Michael Lange wrote: > Hi Roland, > > I don't know if this is possible at all, even sys.exit() does not seem to > work. > Maybe instead of the additional warning dialog you could change the > WM_DELETE_WINDOW > callback while the dialog is up, like > > def info(self): > self.owner

Re: [Tkinter-discuss] main window closing when dialogs are open

2006-10-17 Thread Michael Lange
On Tue, 17 Oct 2006 10:02:35 +0200 Bencsik Roland <[EMAIL PROTECTED]> wrote: > Hi Michael, > > Although your version works well, I am still not satisfied with the > result, because the user does not know why the program is still running > when she pressed the close button. > So, currently I rou

Re: [Tkinter-discuss] main window closing when dialogs are open]

2006-10-17 Thread Bencsik Roland
Michael Lange wrote: > On Mon, 16 Oct 2006 12:42:01 +0200 > Bencsik Roland <[EMAIL PROTECTED]> wrote: > >> Hello Tkinter list, >> >> Could you please help me out how can I make my program exit cleanly if I >> pop up some dialog boxes? >> >> My sample code is below. >> >> When I execute python Wi

Re: [Tkinter-discuss] main window closing when dialogs are open

2006-10-16 Thread Michael Lange
On Mon, 16 Oct 2006 12:42:01 +0200 Bencsik Roland <[EMAIL PROTECTED]> wrote: > Hello Tkinter list, > > Could you please help me out how can I make my program exit cleanly if I > pop up some dialog boxes? > > My sample code is below. > > When I execute python WindowClosingTest.py, open the dial

[Tkinter-discuss] main window closing when dialogs are open

2006-10-16 Thread Bencsik Roland
Hello Tkinter list, Could you please help me out how can I make my program exit cleanly if I pop up some dialog boxes? My sample code is below. When I execute python WindowClosingTest.py, open the dialog by pressing the Info button and close the program by clicking on the close button (X) of