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

Method toggleRefreshButton

gui/characterSelection.py:194–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

192 wx.PostEvent(self.mainFrame, GE.FitChanged(fitIDs=(fitID,)))
193
194 def toggleRefreshButton(self):
195 charID = self.getActiveCharacter()
196 sChar = Character.getInstance()
197 char = sChar.getCharacter(charID)
198 if sChar.getCharName(charID) not in ("All 0", "All 5") and sChar.getSsoCharacter(char.ID) is not None:
199 self.btnRefresh.Enable(True)
200 else:
201 self.btnRefresh.Enable(False)
202
203 def selectChar(self, charID):
204 choice = self.charChoice

Callers 3

__init__Method · 0.95
charChangedMethod · 0.95
fitChangedMethod · 0.95

Calls 5

getActiveCharacterMethod · 0.95
getCharacterMethod · 0.80
getCharNameMethod · 0.80
getInstanceMethod · 0.45
getSsoCharacterMethod · 0.45

Tested by

no test coverage detected