Running 2 gui libs simultaneously

Gordon McMillan gmcm at hypernet.com
Tue Jul 13 10:12:29 EDT 1999


Riaan Booysen writes:
> 
> How difficult would it be to run 2 window libraries simultaneously
> (Tcl/Tk / wxPython) in one Python program. The problem is that both
> need an event processing loop ( lib.mainloop() ). Are threads my
> only solution?

You don't have to use Tk's mainloop. You can call update() in a loop. 
Perhaps wxWindows has something similar, or you can call Tk's update 
from within some idletask in wxWindows.

Not something I'm likely to try...

- Gordon




More information about the Python-list mailing list