Message10314
Hey Alan,
I don't think what you're doing with external would work. The java bytecode is generated when parsing the class, so unless there's already a concrete implementation, i don't thing this will get passed.
If you want to use "external" method, put them on the class not the instance
def internalFrameClosing(self, e): print "External Adapter Event: Frame Closing"
class MyInternalFrameAdapterExternalMethods(javax.swing.event.InternalFrameAdapter):
internalFrameClosing = internalFrameClosing
This works.
If you want to dynamically override:
def internalFrameClosing(self, e): print "External Adapter Event: Frame Closing"
class MyInternalFrameAdapterExternalMethods(javax.swing.event.InternalFrameAdapter):
def __init__(self):
self.internalFrameClosing = someOtherFrameClosing
internalFrameClosing = internalFrameClosing
Should also work. Does any of this make sense? |
|
Date |
User |
Action |
Args |
2015-10-07 10:30:01 | darjus | set | messageid: <1444213801.86.0.402534501454.issue2389@psf.upfronthosting.co.za> |
2015-10-07 10:30:01 | darjus | set | recipients:
+ darjus, zyasoft, kensingtoncat |
2015-10-07 10:30:01 | darjus | link | issue2389 messages |
2015-10-07 10:30:01 | darjus | create | |
|