Re: Tkinter event loop question

2008-08-30 Thread gordon
On Aug 29, 10:46 pm, Russell E. Owen [EMAIL PROTECTED] wrote: you can safely compute stuff with a background thread and display it from the main thread). But cross that bridge later. -- Russell thanks Russel gordon -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter event loop question

2008-08-29 Thread gordon
On Aug 29, 4:45 am, Russell E. Owen [EMAIL PROTECTED] wrote: your Controller object should not create root nor should it call mainloop to start the event loop. guys thanks for the helpful replies..I rewrote the code as you advised. It creates a controller object and a gui object from main

Re: Tkinter event loop question

2008-08-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], gordon [EMAIL PROTECTED] wrote: On Aug 29, 4:45 am, Russell E. Owen [EMAIL PROTECTED] wrote: your Controller object should not create root nor should it call mainloop to start the event loop. guys thanks for the helpful replies..I rewrote the code as you

Re: Tkinter event loop question

2008-08-28 Thread gordon
On Aug 27, 10:42 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: so I guess the question here is from where you expect to call that method, and what you expect Tkinter to do when you call it... thanks for the reply i was planning to write a controller (as in MVC) that will instantiate a gui class

Re: Tkinter event loop question

2008-08-28 Thread Russell E. Owen
In article [EMAIL PROTECTED], gordon [EMAIL PROTECTED] wrote: On Aug 27, 10:42 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: so I guess the question here is from where you expect to call that method, and what you expect Tkinter to do when you call it... thanks for the reply i was

Tkinter event loop question

2008-08-27 Thread gordon
is it possible to send a message to the gui instance while the Tk event loop is running?I mean after i create a gui object like root=Tk() mygui=SomeUI(root) and call root.mainloop() can i send message to mygui without quitting the ui or closing the window?i tried some code like

Re: Tkinter event loop question

2008-08-27 Thread Fredrik Lundh
gordon wrote: is it possible to send a message to the gui instance while the Tk event loop is running?I mean after i create a gui object like root=Tk() mygui=SomeUI(root) and call root.mainloop() can i send message to mygui without quitting the ui or closing the window?i tried some code like

Re: Tkinter event loop question

2008-08-27 Thread Cameron Laird
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: gordon wrote: is it possible to send a message to the gui instance while the Tk event loop is running?I mean after i create a gui object like . . . but