Running 2 gui libs simultaneously

Greg Ewing greg.ewing at compaq.com
Tue Jul 13 21:49:16 EDT 1999


Gordon McMillan wrote:
> 
> 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.

I don't fancy your chances of getting that to work.
The problem isn't just getting two main loops to
run at the same time -- it's making sure that each
event goes to the right UI manager.

You might be able to do it by reading events
yourself, figuring out somehow which UI they
are meant for, and somehow passing them on to
the relevant toolkit. Would be platform-dependent,
since you'd have to deal with events at a low
level.

Greg




More information about the Python-list mailing list