Message10220

Author kensingtoncat
Recipients kensingtoncat, zyasoft
Date 2015-09-03.23:43:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441323785.12.0.337637188439.issue2389@psf.upfronthosting.co.za>
In-reply-to
Content
I hope this is helpful....

After more careful testing, I condensed an example and discovered some interesting behavior. In all cases, the examples work in 2.5
See the attached __main__.py file.

When I used the InternalFrameLister base and implemented the class methods, THE LISTENER WORKS. I even externally defined the method implementations -- see example. The listener works.

When I used the InternalFrameAdapter base and implemented only one class method, THE ADAPTER WORKS.

However, when I used the InternalFrameAdapter base and implemented one class method externally, THE ADAPTER DOES NOT WORK.
This mimicks the software that I first detected the problem.
so:
## works in 2.5   does not work in 2.7
def externalMethod( e ) :  print "HELLO"
class MyAdapter( javax.swing.InternalFrameAdapter ):
    def __init__(self):
        self.internalFrameClosing = externalMethod
History
Date User Action Args
2015-09-03 23:43:05kensingtoncatsetmessageid: <1441323785.12.0.337637188439.issue2389@psf.upfronthosting.co.za>
2015-09-03 23:43:05kensingtoncatsetrecipients: + kensingtoncat, zyasoft
2015-09-03 23:43:05kensingtoncatlinkissue2389 messages
2015-09-03 23:43:05kensingtoncatcreate