Overview
| Comment: | [lo] text formatter: adaptation for Python 3.8 |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | lo |
| Files: | files | file ages | folders |
| SHA3-256: |
864b920629351cb886364d11708beeac |
| User & Date: | olr on 2019-12-02 08:31:53 |
| Other Links: | manifest | tags |
Context
|
2019-12-02
| ||
| 08:32 | [fr] ajustements check-in: 8553c88ec8 user: olr tags: trunk, fr | |
| 08:31 | [lo] text formatter: adaptation for Python 3.8 check-in: 864b920629 user: olr tags: trunk, lo | |
|
2019-11-29
| ||
| 12:05 | [fr] détection ppas check-in: 510fa87d81 user: olr tags: trunk, fr | |
Changes
Modified gc_lang/fr/oxt/TextFormatter/TextFormatter.py from [9ccd38723a] to [1015843a01].
| ︙ | ︙ | |||
414 415 416 417 418 419 420 |
self.bClose = True
self.bapply.Label = self.dUI.get('close', "#err")
self.bapply.TextColor = 0x440000
self.xContainer.setVisible(True)
def _replaceAll (self, xElem):
try:
| | | 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 |
self.bClose = True
self.bapply.Label = self.dUI.get('close', "#err")
self.bapply.TextColor = 0x440000
self.xContainer.setVisible(True)
def _replaceAll (self, xElem):
try:
nStartTime = time.perf_counter()
self.xContainer.setVisible(True)
# change pointer
xPointer = self.ctx.ServiceManager.createInstanceWithContext("com.sun.star.awt.Pointer", self.ctx)
xPointer.setType(uno.getConstantByName("com.sun.star.awt.SystemPointer.WAIT"))
xWindowPeer = self.xContainer.getPeer()
xWindowPeer.setPointer(xPointer)
for x in xWindowPeer.Windows:
|
| ︙ | ︙ | |||
667 668 669 670 671 672 673 |
self.pbar.ProgressValue = self.pbar.ProgressValueMax
# end of processing
xPointer.setType(uno.getConstantByName("com.sun.star.awt.SystemPointer.ARROW"))
xWindowPeer.setPointer(xPointer)
for x in xWindowPeer.Windows:
x.setPointer(xPointer)
self.xContainer.setVisible(True) # seems necessary to refresh the dialog box and text widgets (why?)
| | | 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 |
self.pbar.ProgressValue = self.pbar.ProgressValueMax
# end of processing
xPointer.setType(uno.getConstantByName("com.sun.star.awt.SystemPointer.ARROW"))
xWindowPeer.setPointer(xPointer)
for x in xWindowPeer.Windows:
x.setPointer(xPointer)
self.xContainer.setVisible(True) # seems necessary to refresh the dialog box and text widgets (why?)
nEndTime = time.perf_counter()
self.time_res.Label = getTimeRes(nEndTime-nStartTime)
except:
traceback.print_exc()
def _replaceList (self, xElem, sList):
if sList not in tf_tabrep.dTableRepl:
print("# Error. List <"+sList+"> not found")
|
| ︙ | ︙ |