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

Method SaveCharacterAs

gui/characterEditor.py:276–291  ·  view source on GitHub ↗
(parent, charID)

Source from the content-addressed store, hash-verified

274
275 @staticmethod
276 def SaveCharacterAs(parent, charID):
277 sChar = Character.getInstance()
278 name = sChar.getCharName(charID)
279
280 with TextEntryValidatedDialog(
281 parent, CharacterTextValidor,
282 _t("Enter a name for your new Character:"),
283 _t("Save Character As...")
284 ) as dlg:
285 dlg.SetValue(_t("{} Copy").format(name))
286 dlg.txtctrl.SetInsertionPointEnd()
287 dlg.CenterOnParent()
288
289 if dlg.ShowModal() == wx.ID_OK:
290 sChar = Character.getInstance()
291 return sChar.saveCharacterAs(charID, dlg.txtctrl.GetValue().strip())
292
293
294class SkillTreeView(wx.Panel):

Callers 2

saveCharAsMethod · 0.95
saveCharAsMethod · 0.80

Calls 7

getCharNameMethod · 0.80
saveCharacterAsMethod · 0.80
_tFunction · 0.50
getInstanceMethod · 0.45
SetValueMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected