Hi. I'm trying to convert a complex Star BASIC macro into Python. I
wrote the BASIC version myself, even though i don't really know that
language very well. I'm converting it to Python so that i can maintain
it more easily. Anyway, the macro needs an XKeyHandler. In BASIC i used
the following code:
oComposerKeyHandler = createUnoListener( "Composer_", _
"com.sun.star.awt.XKeyHandler" )
I can't figure out how to convert this to Python. In the OOo 1.9 API
documentation, i can't even find a "createUnoListener" method. If you go
to the XKeyHandler page and click on "Use", there doesn't appear to be
any method which returns an XKeyHandler.
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.
Any help would be appreciated here. Thanks.
Leston
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]