objdictgen/commondialogs.py
changeset 766 206a90c0d343
parent 762 4b60a0d313b0
child 786 8dbe0aec4f36
equal deleted inserted replaced
765:90b738e4ede5 766:206a90c0d343
  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()