wxglade_hmi/wxglade_hmi.py
changeset 1745 f9d32913bad4
parent 1742 92932cd370a4
child 1768 691083b5682a
equal deleted inserted replaced
1744:69dfdb26f600 1745:f9d32913bad4
   155         open_wxglade = True
   155         open_wxglade = True
   156         if not self.GetCTRoot().CheckProjectPathPerm():
   156         if not self.GetCTRoot().CheckProjectPathPerm():
   157             dialog = wx.MessageDialog(self.GetCTRoot().AppFrame,
   157             dialog = wx.MessageDialog(self.GetCTRoot().AppFrame,
   158                                       _("You don't have write permissions.\nOpen wxGlade anyway ?"),
   158                                       _("You don't have write permissions.\nOpen wxGlade anyway ?"),
   159                                       _("Open wxGlade"),
   159                                       _("Open wxGlade"),
   160                                       wx.YES_NO|wx.ICON_QUESTION)
   160                                       wx.YES_NO | wx.ICON_QUESTION)
   161             open_wxglade = dialog.ShowModal() == wx.ID_YES
   161             open_wxglade = dialog.ShowModal() == wx.ID_YES
   162             dialog.Destroy()
   162             dialog.Destroy()
   163         if open_wxglade:
   163         if open_wxglade:
   164             if not os.path.exists(wxg_filename):
   164             if not os.path.exists(wxg_filename):
   165                 hmi_name = self.BaseParams.getName()
   165                 hmi_name = self.BaseParams.getName()