equal
deleted
inserted
replaced
1250 if os.path.isfile(filepath): |
1250 if os.path.isfile(filepath): |
1251 result, question = self.NodeList.ImportEDSFile(filepath) |
1251 result, question = self.NodeList.ImportEDSFile(filepath) |
1252 if result is not None and question: |
1252 if result is not None and question: |
1253 dialog = wx.MessageDialog(self, _("%s\nWould you like to replace it ?")%result, _("Question"), wx.YES_NO|wx.ICON_QUESTION) |
1253 dialog = wx.MessageDialog(self, _("%s\nWould you like to replace it ?")%result, _("Question"), wx.YES_NO|wx.ICON_QUESTION) |
1254 if dialog.ShowModal() == wx.ID_YES: |
1254 if dialog.ShowModal() == wx.ID_YES: |
1255 dialog, question = self.NodeList.ImportEDSFile(filepath, True) |
1255 result, question = self.NodeList.ImportEDSFile(filepath, True) |
1256 dialog.Destroy() |
1256 dialog.Destroy() |
1257 if result is not None and not question: |
1257 if result is not None and not question: |
1258 dialog = wx.MessageDialog(self, result, _("Error"), wx.OK|wx.ICON_ERROR) |
1258 dialog = wx.MessageDialog(self, result, _("Error"), wx.OK|wx.ICON_ERROR) |
1259 dialog.ShowModal() |
1259 dialog.ShowModal() |
1260 dialog.Destroy() |
1260 dialog.Destroy() |