GUI.pyw: fix an error that seems to happen only on Python 3.5

When closing down the program, this error message appeared: 'TypeError: catching classes that do not inherit from BaseException is not allowed'. It seems to depend on Tkinter's PhotoImage object being destroyed after the root windows's destroy() method is called.
This commit is contained in:
Elvish_Hunter 2016-06-11 10:46:47 +02:00
parent 5001c58fde
commit 270809c68c

View file

@ -1231,8 +1231,10 @@ Icons are taken from the Tango Desktop Project (http://tango.freedesktop.org), a
"Do you really want to quit?",
icon = WARNING)
if answer:
ICONS.clear()
self.parent.destroy()
else:
ICONS.clear()
self.parent.destroy()
root=Tk()