Tkinter event loop question

Cameron Laird claird at lairds.us
Wed Aug 27 14:57:57 EDT 2008


In article <mailman.93.1219859138.3487.python-list at python.org>,
Fredrik Lundh  <fredrik at pythonware.com> 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 it only gets executed after i close the the ui window.Is there a
>> way to get this message passing while gui is running ?
>
>it's the event loop that keeps Tkinter running, and Tkinter then calls 
>your program (typically via command callbacks or event handlers) when 
>it's time to do something.
>
>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...
			.
			.
			.
... but there certainly are Tkinter applications that 
respond to the user or other "outside" messages.  Just
as Fredrik advises, the next step would be for you to
provide a bit of detail on what you have in mind for
"passing a message in".



More information about the Python-list mailing list