SuneOskar General User

Joined: 24 Aug 2010 Posts: 8
|
Posted: Tue May 01, 2012 10:18 am Post subject: Python and Basic Dialogs |
|
|
The code below is copied from this forum and and works fine to open myDialog.
| Code: | import uno
#, unohelper
def mydialog():
psm = uno.getComponentContext().ServiceManager
dp = psm.createInstance("com.sun.star.awt.DialogProvider")
dlg = dp.createDialog("vnd.sun.star.script:Standard.myDialog?location=application")
dlg.execute() |
However, I want to close it using a macro and not by means of a button or the mouse, but cannot figure out how to do it |
|