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.
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 <<ThemeChanged>>"
(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.
Confirmed with mpl master, ubuntu 11.04. It seems to be a harmless glitch in Tk. It is triggered by making a figure and then closing it; it does not matter whether anything is drawn in the figure. So the example can be condensed even more to:
import matplotlib.pyplot as plt
fig1 = plt.figure()
plt.close(fig1)
fig2 = plt.figure()
plt.plot(range(10), 'bo')
plt.title('This figure will be shown')
plt.show()
Eric
···
On 02/18/2012 01:44 PM, frank.feiler@...3785... wrote:
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()
------------------------------------------------------------------------------
Virtualization& Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/