summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-02 11:03:19 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-02 11:03:19 (GMT)
commitd05e18139f37934344a55d165be7894983cd5de6 (patch)
treedfe296a0057706581179d03834af7bfbe18a5079 /Mac
parentd5f4359458877fd2e36d82f71e2c2f86ad50b251 (diff)
downloadcpython-d05e18139f37934344a55d165be7894983cd5de6.zip
cpython-d05e18139f37934344a55d165be7894983cd5de6.tar.gz
cpython-d05e18139f37934344a55d165be7894983cd5de6.tar.bz2
Slightly better error message in case of missing resources.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Lib/EasyDialogs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py
index 394e912..52aad97 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))