Joined: 24 Aug 2010
|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.
psm = uno.getComponentContext().ServiceManager
dp = psm.createInstance("com.sun.star.awt.DialogProvider")
dlg = dp.createDialog("vnd.sun.star.script:Standard.myDialog?location=application")
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