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

Method AddPage

gui/multiSwitch.py:40–46  ·  view source on GitHub ↗
(self, tabWnd=None, tabTitle=None, tabImage=None)

Source from the content-addressed store, hash-verified

38 h(type, info)
39
40 def AddPage(self, tabWnd=None, tabTitle=None, tabImage=None):
41 tabTitle = tabTitle or _t("Empty Tab")
42 if tabWnd is None:
43 tabWnd = gui.builtinViews.emptyView.BlankPage(self)
44 tabWnd.handleDrag = lambda type, info: self.handleDrag(type, info)
45
46 ChromeNotebook.AddPage(self, tabWnd, tabTitle, tabImage, True)
47
48 def DeletePage(self, n, *args, **kwargs):
49 ChromeNotebook.DeletePage(self, n, *args, **kwargs)

Callers 10

DeletePageMethod · 0.95
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
LoadPreviousOpenFitsMethod · 0.45
HAddPageMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
fitSelectedMethod · 0.45
handleDragMethod · 0.45

Calls 2

handleDragMethod · 0.95
_tFunction · 0.50

Tested by

no test coverage detected