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

Method OnTimer

gui/builtinShipBrowser/shipItem.py:115–122  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

113 self.PopupMenu(menu, pos)
114
115 def OnTimer(self, event):
116 step = self.OUT_QUAD(self.animStep, 0, 10, self.animDuration)
117 self.animCount = 10 - step
118 self.animStep += self.animPeriod
119 if self.animStep > self.animDuration or self.animCount < 0:
120 self.animCount = 0
121 self.animTimer.Stop()
122 self.Refresh()
123
124 def OnKeyUp(self, event):
125 if event.GetKeyCode() in (32, 13): # space and enter

Callers

nothing calls this directly

Calls 3

OUT_QUADMethod · 0.95
StopMethod · 0.80
RefreshMethod · 0.45

Tested by

no test coverage detected