canfestival/canfestival.py
changeset 1745 f9d32913bad4
parent 1744 69dfdb26f600
child 1746 45d6f5fba016
equal deleted inserted replaced
1744:69dfdb26f600 1745:f9d32913bad4
   168         dialog = wx.FileDialog(self.GetCTRoot().AppFrame,
   168         dialog = wx.FileDialog(self.GetCTRoot().AppFrame,
   169                                _("Choose a file"),
   169                                _("Choose a file"),
   170                                os.path.expanduser("~"),
   170                                os.path.expanduser("~"),
   171                                "%s.eds" % self.CTNName(),
   171                                "%s.eds" % self.CTNName(),
   172                                _("EDS files (*.eds)|*.eds|All files|*.*"),
   172                                _("EDS files (*.eds)|*.eds|All files|*.*"),
   173                                wx.SAVE|wx.OVERWRITE_PROMPT)
   173                                wx.SAVE | wx.OVERWRITE_PROMPT)
   174         if dialog.ShowModal() == wx.ID_OK:
   174         if dialog.ShowModal() == wx.ID_OK:
   175             result = eds_utils.GenerateEDSFile(dialog.GetPath(), self.GetCurrentNodeCopy())
   175             result = eds_utils.GenerateEDSFile(dialog.GetPath(), self.GetCurrentNodeCopy())
   176             if result:
   176             if result:
   177                 self.GetCTRoot().logger.write_error(_("Error: Export slave failed\n"))
   177                 self.GetCTRoot().logger.write_error(_("Error: Export slave failed\n"))
   178         dialog.Destroy()
   178         dialog.Destroy()