Combining Tkinter and win32ui makes Python crash on exit Combining Tkinter and win32ui makes Python crash on exit tkinter tkinter

Combining Tkinter and win32ui makes Python crash on exit


A workaround is to invoke the Tkinter-win32UI app with pythonw. Python doesn't crash.

Tested with Python 3.6.3 on Win 10.


Make a button on the Windows and close your program by this button. Here's my script:

from tkinter import *import win32uiwin = Tk()frame = Frame(win)frame.pack(padx = 10, pady = 10)b1 = Button(frame, text = "Close", command = win.destroy)b1.pack()win.mainloop()