MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / importCharacter

Method importCharacter

gui/mainFrame.py:965–980  ·  view source on GitHub ↗

Imports character XML file from EVE API

(self, event)

Source from the content-addressed store, hash-verified

963 wx.PostEvent(self.shipBrowser, ImportSelected(fits=results, back=True))
964
965 def importCharacter(self, event):
966 """ Imports character XML file from EVE API """
967 with wx.FileDialog(
968 self,
969 _t("Open One Or More Character Files"),
970 wildcard="|".join([
971 _t("EVE API XML character files") + " (*.xml)|*.xml",
972 _t("All Files") + "|*"
973 ]),
974 style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST | wx.FD_MULTIPLE
975 ) as dlg:
976 if dlg.ShowModal() == wx.ID_OK:
977 self.supress_left_up = True
978 self.waitDialog = wx.BusyInfo(_t("Importing Character..."), parent=self)
979 sCharacter = Character.getInstance()
980 sCharacter.importCharacter(dlg.GetPaths(), self.importCharacterCallback)
981
982 def importCharacterCallback(self):
983 self.closeWaitDialog()

Callers

nothing calls this directly

Calls 2

_tFunction · 0.50
getInstanceMethod · 0.45

Tested by

no test coverage detected