Preferred way to input python commands from the main loop
morden at shadows.net
Wed Jan 22 02:27:38 CET 2003
> I'm creating a simple tkinter program to get driven by an existing motif
> The way I intend it to work is to have the existing app feed python
> commands to the tkinter program sitting in the mainloop, have them
> executed and feed the results in form
> fromgui.buttonpressed("tagfoo", 1)
> back to the motif app.
> Sooo, should I used after() to setup reading from the motif app or
> should I create a thread waiting for the input from the motif app?
Nevermind. Section 9.6 in the python cookbook seems to describe one way
to do this.
More information about the Python-list