mercredi 25 février 2015

Combining Tkinter and win32ui crashes python on exit

While building a basic app using the winapi with python 2.7 (I'm on windows 8.1), I tried to add a small Tkinter gui to the program. The problem is, whenever I close the app window - python crashes completely (getting crash messages basically).


I have found reports of this issue in several places, but couldn't find a fix or solution. Here are some sources:


http://ift.tt/1DaU1Je


http://ift.tt/1worS4v (this one is from 2002!)


It can be reproduced with as much as these 4 lines:



from Tkinter import Tk
import win32ui

root = Tk()
root.mainloop()


And closing the window after running it. Does anyone know of a solution for this? Any recommendations for a workaround maybe?


Thanks.


Aucun commentaire:

Enregistrer un commentaire