Hi,
Oh, so now i see that XKeyHandler is an interface, so i suppose i need to create an object that implements this interface. I know how to do that in Java, but how would i do that in Python? It looks like "createUnoListener" is some BASIC-specific convenience method to create an object which does nothing but implement the XKeyHandler interface.
Have a look here
http://udk.openoffice.org/python/python-bridge.html#objects so it should be something like (have neither compiled nor tested it ): import unohelper from com.sun.star.awt import XKeyHandler class MyKeyHandler( unohelper.Base, XKeyHandler ): def __init__( self ): pass def disposing( self, source ): pass def keyPressed( self, event ): return False def keyReleased( self, event ): return False Bye, Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
