Hi,

there are java codes to control the elements of a dialog created by
OOBasic dialog editor. But the python codes translated from the java
codes do not work.

the java codes are listed below:

Reference< XDialog > xDialog=xDialog2->createDialogWithHandler(
                OUString::createFromAscii( 
"vnd.sun.star.script:Standard.SimpleTreeDialog?location=application" ),
                (XCountable *)this);

the corresponding python codes:

        
dongtao1=self.smgr.createInstanceWithArgumentsAndContext("com.sun.star.awt.DialogProvider",
                (self.desktop.getCurrentComponent(),),self.ctx)
        
dialog=dongtao1.createDialog("vnd.sun.star.script:Standard.SimpleTreeDialog?location=application")
        dialog.execute()

SimpleTreeDialog is created by OOBasic Editor. The above python codes
are stuck at dialog=dongtao1.createDialog(...).

Thanks for advance.

the whole java codes are located at
http://wiki.services.openoffice.org/wiki/Going_further_with_Dialog_and_Component#Multi-Page_Dialog


Best regards,
nuix


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to