[PyKDE] Re: [MayaVi-users] IDE behavior [correction]

Prabhu Ramachandran prabhu_r at users.sourceforge.net
Fri Sep 16 15:01:16 BST 2005


>>>>> "Burkhard" == Burkhard Doliwa <doliwa at temf.tu-darmstadt.de> writes:

    Burkhard> Hi, using eric3 under windows 2000, I have found that
    Burkhard> tools using the Tkinter module do NOT work as expected
    Burkhard> when used from the debug probe shell. For instance,
    Burkhard> MayaVi does not redraw anything in the Tk windows
    Burkhard> launched.

    Burkhard> Is this related to a 'thread-safety' problem?

The problem is that Tkinter has its own mainloop, just like Qt and
these are unlikely to get along.  If you did something like so:

 import mayavi
 v = mayavi.mayavi()

you are likely to get Tkinter windows that never update.  One possible
way around this is to periodically call v.root.update() in order to
allow Tkinter to run its mainloop.  However, this might not work at
all and you might end up with errors or crashes.

cheers,
prabhu




More information about the PyQt mailing list