From d05e18139f37934344a55d165be7894983cd5de6 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 2 Aug 2002 11:03:19 +0000 Subject: [PATCH] Slightly better error message in case of missing resources. --- Mac/Lib/EasyDialogs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py index 394e9123d36..52aad9791d9 100644 --- a/Mac/Lib/EasyDialogs.py +++ b/Mac/Lib/EasyDialogs.py @@ -50,7 +50,7 @@ def Message(msg, id=260, ok=None): d = GetNewDialog(id, -1) if not d: - print "Can't get DLOG resource with id =", id + print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)" return h = d.GetDialogItemAsControl(2) SetDialogItemText(h, lf2cr(msg)) @@ -81,7 +81,7 @@ def AskString(prompt, default = "", id=261, ok=None, cancel=None): d = GetNewDialog(id, -1) if not d: - print "Can't get DLOG resource with id =", id + print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)" return h = d.GetDialogItemAsControl(3) SetDialogItemText(h, lf2cr(prompt)) @@ -121,7 +121,7 @@ def AskPassword(prompt, default='', id=264, ok=None, cancel=None): """ d = GetNewDialog(id, -1) if not d: - print "Can't get DLOG resource with id =", id + print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)" return h = d.GetDialogItemAsControl(3) SetDialogItemText(h, lf2cr(prompt)) @@ -163,7 +163,7 @@ def AskYesNoCancel(question, default = 0, yes=None, no=None, cancel=None, id=262 d = GetNewDialog(id, -1) if not d: - print "Can't get DLOG resource with id =", id + print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)" return # Button assignments: # 1 = default (invisible) @@ -393,7 +393,7 @@ def _selectoption(d, optionlist, idx): def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfolder=1, id=ARGV_ID): d = GetNewDialog(id, -1) if not d: - print "Can't get DLOG resource with id =", id + print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)" return # h = d.GetDialogItemAsControl(3) # SetDialogItemText(h, lf2cr(prompt))