261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
self.xNumWord.Label = str(i)
self.xTotWord.Label = nTotOccur
@_waitPointer
def tagText (self, sWord, sAction=""):
if not sAction:
return
self.xProgressBar.ProgressValueMax = self._countParagraph() * 2
self.xProgressBar.ProgressValue = 0
xCursor = self.xDocument.Text.createTextCursor()
#helpers.xray(xCursor)
xCursor.gotoStart(False)
xCursor.gotoEndOfParagraph(True)
sParagraph = xCursor.getString()
if sWord in sParagraph:
|
|
|
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
self.xNumWord.Label = str(i)
self.xTotWord.Label = nTotOccur
@_waitPointer
def tagText (self, sWord, sAction=""):
if not sAction:
return
self.xProgressBar.ProgressValueMax = self._countParagraph()
self.xProgressBar.ProgressValue = 0
xCursor = self.xDocument.Text.createTextCursor()
#helpers.xray(xCursor)
xCursor.gotoStart(False)
xCursor.gotoEndOfParagraph(True)
sParagraph = xCursor.getString()
if sWord in sParagraph:
|