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

Method openOne

gui/auxWindow.py:58–68  ·  view source on GitHub ↗

If window is open and alive - raise it, open otherwise

(cls, parent, *args, forceReopen=False, **kwargs)

Source from the content-addressed store, hash-verified

56
57 @classmethod
58 def openOne(cls, parent, *args, forceReopen=False, **kwargs):
59 """If window is open and alive - raise it, open otherwise"""
60 if not cls._instance or forceReopen:
61 if cls._instance:
62 cls._instance.Close()
63 frame = cls(parent, *args, **kwargs)
64 cls._instance = frame
65 frame.Show()
66 else:
67 cls._instance.Raise()
68 return cls._instance
69
70
71 def OnSuppressedAction(self, event):

Callers 15

__init__Method · 0.45
OnShowGraphFrameMethod · 0.45
OnShowDevToolsMethod · 0.45
OnShowCharacterEditorMethod · 0.45
OnShowAttrEditorMethod · 0.45
eveFittingsMethod · 0.45
ssoHandlerMethod · 0.45
exportToEveMethod · 0.45

Calls 1

ShowMethod · 0.45

Tested by

no test coverage detected