Message10314

Author darjus
Recipients darjus, kensingtoncat, zyasoft
Date 2015-10-07.10:30:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444213801.86.0.402534501454.issue2389@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2015-10-07 10:30:01darjussetmessageid: <1444213801.86.0.402534501454.issue2389@psf.upfronthosting.co.za>
2015-10-07 10:30:01darjussetrecipients: + darjus, zyasoft, kensingtoncat
2015-10-07 10:30:01darjuslinkissue2389 messages
2015-10-07 10:30:01darjuscreate