MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / FitTestThread

Class FitTestThread

gui/devTools.py:110–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110class FitTestThread(threading.Thread):
111 def __init__(self, fitIDs, mainFrame):
112 threading.Thread.__init__(self)
113 self.name = "FitTestThread"
114 self.mainFrame = mainFrame
115 self.stopRunning = False
116 self.fits = fitIDs
117
118 def stop(self):
119 self.stopRunning = True
120
121 def run(self):
122 # wait 1 second just in case a lot of modifications get made
123 if self.stopRunning:
124 return
125
126 for fit in self.fits:
127 time.sleep(1)
128 e = FitSelected(fitID=fit)
129 wx.PostEvent(self.mainFrame, e)

Callers 1

fit_testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected