At least, I am pretty sure it did.
Then again, I am watching the Worlcup final at this time.
So a significant part of my brain is doing something else,
Mark
On 7/9/06, John Hunter <[EMAIL PROTECTED]> wrote:
>>>>> "Mark" == Mark Bakker <[EMAIL PROTECTED]> writes:
Mark> John was asking whether there was something left to be fixed
Mark> befor 0.88. In 0.87.3, there is still a bug left that has
Mark> been reported several times I think.
Interesting. the tk ask file dialog seems to be triggering a destgroy
event on the main window, which removes it from mpl figure
management. Here is a minimal Tk script which exposes the problem.
When you press the mouse button, you get a file dialog that when you
close it triggers a destroy event and calls the callback function
I don't know if this is a tk bug or if we are misusing the Tk code.
Tk experts?
I'll post on python-list.
JDH
import Tkinter as Tk
from tkFileDialog import asksaveasfilename
def button(event):
fname = asksaveasfilename(
title='Save the figure'
)
window = Tk.Tk()
frame = Tk.Frame(window, width=500,height=500)
frame.bind('<Button-1>', button)
frame.pack()
def callback(*args):
print 'called callback'
window.bind("<Destroy>", callback)
window.mainloop()
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel