Imports character XML file from EVE API
(self, event)
| 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() |
nothing calls this directly
no test coverage detected