Python GUIs: Abandoning TkInter and welcoming wxPython?
Ernst-Udo Wallenborn
wallenborn at phys.chem.ethz.ch
Tue Jun 29 09:02:40 EDT 1999
To ask a completely different question: What about
threads and GUI? With Tkinter you have to rewirte the
mainloop like this
def mainloop(self):
while 1:
Frame.update(self)
time.sleep(0.02)
if self.quitting == 1:
sys.exit(0)
to convince it to run with thread or threading. I remember having
read a comment from Guido van Rossum, citing Jan Osterhout that Tk
will never be thread-safe and that therefore this problem will not go
away.
Would this be any different with a different GUI kit?
--
Ernst-Udo Wallenborn
Laboratorium fuer Physikalische Chemie
ETH Zuerich
More information about the Python-list
mailing list