Re: [Tkinter-discuss] Trouble quitting a Tkinter app on Windows

2006-03-17 Thread Stewart Midwinter
I've had that same error message using Pmw widgets. Yes, I use root.destroy(), and no, I don't have the problem any more. def end(self): '''# Quit Scenario Manager Application''' try: root.destroy() except TclError: #exception oc

Re: [Tkinter-discuss] Trouble quitting a Tkinter app on Windows

2006-03-17 Thread Cameron Laird
On Fri, Mar 17, 2006 at 10:54:56AM -0800, Russell E. Owen wrote: . . . > I have a Python/Tkinter application that runs on various platforms. When > the user selects "quit", I call root.quit() or sys.exit(0) (newer vs. > older

[Tkinter-discuss] Trouble quitting a Tkinter app on Windows

2006-03-17 Thread Russell E. Owen
I have a Python/Tkinter application that runs on various platforms. When the user selects "quit", I call root.quit() or sys.exit(0) (newer vs. older version of the code). This works on all platforms except Windows. On Windows when the user quits (which calls quit on the root toplevel), it alway

Re: [Tkinter-discuss] question on displaying inserted text in widget'Text'

2006-03-17 Thread Stewart Midwinter
Man you've got to be fast to get ahead of Fredrik! And his solution is better than mine, anyway... :-) S ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

Re: [Tkinter-discuss] question on displaying inserted text in widget 'Text'

2006-03-17 Thread Stewart Midwinter
one line is all you need to change. def execute(self): self.addMessage(' Start testing') tk.update() for i in range(1): for j in range (2000): i*j self.addMessage(' Finish testing') BTW, it's customary, though certainly not necessary, to call your main window

Re: [Tkinter-discuss] question on displaying inserted text in widget'Text'

2006-03-17 Thread Fredrik Lundh
"V H" wrote: > The function what I implemented takes 30 seconds. Before running it I want > to give some message to user by displaying them in the widget 'Text'. Seems > it's not useful because the message are always displayed after the excution. > Could you help me to resolve it? call self.text.

[Tkinter-discuss] question on displaying inserted text in widget 'Text'

2006-03-17 Thread V H
Hello, The function what I implemented takes 30 seconds. Before running it I want to give some message to user by displaying them in the widget 'Text'. Seems it's not useful because the message are always displayed after the excution. Could you help me to resolve it? Thanks a lot. best regards