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

Method run

gui/mainFrame.py:114–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 self.start()
113
114 def run(self):
115 # `startup` tells FitSpawner that we are loading fits are startup, and
116 # has 3 values:
117 # False = Set as default in FitSpawner itself, never set here
118 # 1 = Create new fit page, but do not calculate page
119 # 2 = Create new page and calculate
120 # We use 1 for all fits except the last one where we use 2 so that we
121 # have correct calculations displayed at startup
122 for fitID in self.fits[:-1]:
123 if self.running:
124 wx.PostEvent(self.mainFrame, FitSelected(fitID=fitID, startup=1))
125
126 if self.running:
127 wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fits[-1], startup=2))
128 wx.CallAfter(self.callback)
129
130 def stop(self):
131 self.running = False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected