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

Method ShowLoading

gui/builtinShipBrowser/pfWidgetContainer.py:14–25  ·  view source on GitHub ↗
(self, mode=True)

Source from the content-addressed store, hash-verified

12 self.anim.Show(False)
13
14 def ShowLoading(self, mode=True):
15 if mode:
16 aweight, aheight = self.anim.GetSize()
17 cweight, cheight = self.GetSize()
18 ax = (cweight - aweight) / 2
19 ay = (cheight - aheight) / 2
20 self.anim.SetPosition((ax, ay))
21 self.anim.Show()
22 self.anim.Play()
23 else:
24 self.anim.Stop()
25 self.anim.Show(False)
26
27 def IsWidgetSelectedByContext(self, widget):
28 mainFrame = gui.mainFrame.MainFrame.getInstance()

Callers 6

stage1Method · 0.80
stage2CallbackMethod · 0.80
stage2Method · 0.80
stage3Method · 0.80
searchStageMethod · 0.80
importStageMethod · 0.80

Calls 5

PlayMethod · 0.80
StopMethod · 0.80
GetSizeMethod · 0.45
SetPositionMethod · 0.45
ShowMethod · 0.45

Tested by

no test coverage detected