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

Method SetSelection

gui/chrome_tabs.py:248–257  ·  view source on GitHub ↗
(self, page, focus=True)

Source from the content-addressed store, hash-verified

246 self.tabs_container.DisableTab(idx, toggle)
247
248 def SetSelection(self, page, focus=True):
249 old_selection = self.GetSelection()
250 if old_selection != page:
251 self._active_page.Hide()
252 self._active_page = self._pages[page]
253 self.tabs_container.SetSelected(page)
254 self.ShowActive()
255 if focus:
256 self._active_page.SetFocus()
257 wx.PostEvent(self, PageChanged(old_selection, page))
258
259 def DeletePage(self, n):
260 page = self._pages[n]

Callers 15

NextPageMethod · 0.95
PrevPageMethod · 0.95
DisablePageMethod · 0.95
refreshAxeLabelsMethod · 0.80
__init__Method · 0.80
updateCharListMethod · 0.80
__init__Method · 0.80
updateCharListMethod · 0.80
CheckTabSelectedMethod · 0.80
refreshCharacterListMethod · 0.80
charChangedMethod · 0.80
selectCharMethod · 0.80

Calls 5

GetSelectionMethod · 0.95
ShowActiveMethod · 0.95
PageChangedClass · 0.85
HideMethod · 0.80
SetSelectedMethod · 0.45

Tested by

no test coverage detected