MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / ProgressHelper

Class ProgressHelper

gui/utils/progressHelper.py:1–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class ProgressHelper:
2
3 def __init__(self, message, maximum=None, callback=None):
4 self.message = message
5 self.current = 0
6 self.maximum = maximum
7 self.workerWorking = True
8 self.dlgWorking = True
9 self.error = None
10 self.callback = callback
11 self.cbArgs = []
12
13 @property
14 def working(self):
15 return self.workerWorking and self.dlgWorking and not self.error
16
17 @property
18 def userCancelled(self):
19 return not self.dlgWorking

Callers 3

fileImportDialogMethod · 0.90
backupToXmlMethod · 0.90
exportHtmlMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected