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

Method btnRestrict

gui/characterEditor.py:202–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 self.charChanged(None)
201
202 def btnRestrict(self):
203 char = self.entityEditor.getActiveEntity()
204
205 # enable/disable character saving stuff
206 self.btnSaveChar.Enable(not char.ro and char.isDirty)
207 self.btnSaveAs.Enable(char.isDirty)
208 self.btnRevert.Enable(char.isDirty)
209 self.sview.importBtn.Enable(not char.ro)
210
211 def refreshCharacterList(self, event=None):
212 """This is only called when we save a modified character"""

Callers 4

__init__Method · 0.95
refreshCharacterListMethod · 0.95
charChangedMethod · 0.95
importSkillsMethod · 0.80

Calls 1

getActiveEntityMethod · 0.80

Tested by

no test coverage detected