Exemple #1
0
 def _setDialogText(self, dialog, url):
     control = dialog.getControl('TextField1')
     length, sequence = getFileSequence(self.ctx, url)
     control.Text = sequence.value.decode('utf-8')
     selection = uno.createUnoStruct('com.sun.star.awt.Selection', length,
                                     length)
     control.setSelection(selection)
Exemple #2
0
 def _setDialogText(self, dialog, url):
     length, sequence = getFileSequence(self.ctx, url)
     dialog.getControl('TextField1').Text = sequence.value.decode('utf-8')