Message10220
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 |
|
Date |
User |
Action |
Args |
2015-09-03 23:43:05 | kensingtoncat | set | messageid: <1441323785.12.0.337637188439.issue2389@psf.upfronthosting.co.za> |
2015-09-03 23:43:05 | kensingtoncat | set | recipients:
+ kensingtoncat, zyasoft |
2015-09-03 23:43:05 | kensingtoncat | link | issue2389 messages |
2015-09-03 23:43:05 | kensingtoncat | create | |
|