pyletter: Make call the wizard remotely possible
Change-Id: I6cf58bb25cc44118b086fbe1339aae2c4069416b
This commit is contained in:
parent
b617e84227
commit
201788d305
1 changed files with 11 additions and 10 deletions
|
@ -66,19 +66,20 @@ class LetterWizardDialogImpl(LetterWizardDialog):
|
|||
self.NormPaths = []
|
||||
|
||||
@classmethod
|
||||
def main(self, args):
|
||||
ConnectStr = \
|
||||
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
|
||||
xLocMSF = None
|
||||
def main(self):
|
||||
#Call the wizard remotely(see README)
|
||||
try:
|
||||
ConnectStr = \
|
||||
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
|
||||
xLocMSF = Desktop.connect(ConnectStr)
|
||||
except Exception, e:
|
||||
traceback.print_exc()
|
||||
lw = LetterWizardDialogImpl(xLocMSF)
|
||||
lw.startWizard(xLocMSF)
|
||||
except Exception as e:
|
||||
print ("Wizard failure exception " + str(type(e)) +
|
||||
" message " + str(e) + " args " + str(e.args) +
|
||||
traceback.format_exc())
|
||||
|
||||
lw = LetterWizardDialogImpl(xLocMSF)
|
||||
lw.startWizard(xLocMSF, None)
|
||||
|
||||
def startWizard(self, xMSF, CurPropertyValue):
|
||||
def startWizard(self, xMSF):
|
||||
self.running = True
|
||||
try:
|
||||
#Number of steps on WizardDialog
|
||||
|
|
Loading…
Reference in a new issue