I am trying to write an AWT application, and i need to override the windowClosing function. If i define the function like this:
myframe.windowClosing = f
then everything works perfectly.
if i subclass frame, and i have a method like this:
def windowClosing(self, ev):
then it simply doesn't work. Is this a jython bug? I don't get this problem in other similar situations, so i don't understand... awt definitely knows nothing about the difference between a function and a callable method, so this should either be a jython bug, or I am doing something wrong.
By the way, what is the best way to catch the user
pushing the x button on the windowmanager? the functions action() and handleEvent() don't get called for me when this happens!
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.