Added file name to fit import

This commit is contained in:
HomeWorld
2011-01-16 18:22:49 +02:00
parent d5f5a1ea44
commit dc9f07367c
2 changed files with 12 additions and 8 deletions

View File

@@ -253,13 +253,14 @@ class MainFrame(wx.Frame):
wildcard = "EFT text fitting files (*.cfg)|*.cfg|EvE XML fitting files (*.xml)|*.xml|All Files (*)|*",
style = wx.FD_OPEN | wx.FD_FILE_MUST_EXIST | wx.FD_MULTIPLE)
if (dlg.ShowModal() == wx.ID_OK):
try:
for importPath in dlg.GetPaths():
fits += sFit.importFit(importPath)
IDs = sFit.saveImportedFits(fits)
self._openAfterImport(len(fits), IDs)
except:
wx.MessageBox("Error importing from file.", "Error", wx.OK | wx.ICON_ERROR, self)
# try:
for importPath in dlg.GetPaths():
fits += sFit.importFit(importPath)
print fits
IDs = sFit.saveImportedFits(fits)
self._openAfterImport(len(fits), IDs)
# except:
# wx.MessageBox("Error importing from file.", "Error", wx.OK | wx.ICON_ERROR, self)
dlg.Destroy()
def _openAfterImport(self, importCount, fitIDs):