From: <fra...@hu...> - 2012-02-18 23:44:55
|
Hello all. I have a rather long code and get always a strange error: can't invoke "event" command: application has been destroyed while executing "event generate $w " (procedure "ttk::ThemeChanged" line 6) invoked from within "ttk::ThemeChanged" The code is too long but I found some other code that produces exactly same type of error (see below). Does anybody have an idea what can be done in this case? Thx for some help. Frank. I use: Ubuntu 10.10, 64 bit, Tkinter, Python 2.6, etc ... *************************************************************** import matplotlib.pyplot as plt fig1 = plt.figure() plt.plot(range(10), 'ro-') plt.title('This figure will be saved but not shown') fig1.savefig('fig1.png') plt.close(fig1) fig2 = plt.figure() plt.plot(range(10), 'bo') plt.title('This figure will be shown') plt.show() |