diff --git a/configtool/boardpanel.py b/configtool/boardpanel.py index f44f30b..9293b91 100644 --- a/configtool/boardpanel.py +++ b/configtool/boardpanel.py @@ -456,7 +456,8 @@ class BoardPanel(wx.Panel): def saveConfigFile(self, path): if os.path.basename(path) in protectedFiles: - dlg = wx.MessageDialog(self, "Unable to overwrite %s." % path, + dlg = wx.MessageDialog(self, "It's not allowed to overwrite files " + "distributed by Teacup. Choose another name.", "Protected file error", wx.OK + wx.ICON_ERROR) dlg.ShowModal() dlg.Destroy() diff --git a/configtool/printerpanel.py b/configtool/printerpanel.py index f7e2f52..3a48f82 100644 --- a/configtool/printerpanel.py +++ b/configtool/printerpanel.py @@ -315,7 +315,8 @@ class PrinterPanel(wx.Panel): def saveConfigFile(self, path): if os.path.basename(path) in protectedFiles: - dlg = wx.MessageDialog(self, "Unable to overwrite %s." % path, + dlg = wx.MessageDialog(self, "It's not allowed to overwrite files " + "distributed by Teacup. Choose another name.", "Protected file error", wx.OK + wx.ICON_ERROR) dlg.ShowModal() dlg.Destroy()