diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-27 19:48:23 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-27 19:48:23 (GMT) |
commit | c422e69fb20bdd6f7eeaec2f67d5dc35874f6c97 (patch) | |
tree | c8cd1c66faa65fac8be9a9a85c0fc3ba7b8a564f /library/dialog.tcl | |
parent | f3c1619ae427be91cfa91ee6bcea3b7445ab72ef (diff) | |
parent | cff7e38ce85264e816b2d388b46b144e84d2bfab (diff) | |
download | tk-c422e69fb20bdd6f7eeaec2f67d5dc35874f6c97.zip tk-c422e69fb20bdd6f7eeaec2f67d5dc35874f6c97.tar.gz tk-c422e69fb20bdd6f7eeaec2f67d5dc35874f6c97.tar.bz2 |
Generate -errorcode values to go with errors. Generate messages and postscript
using Tcl_Obj API, not the string result API.
Diffstat (limited to 'library/dialog.tcl')
-rw-r--r-- | library/dialog.tcl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/dialog.tcl b/library/dialog.tcl index adea259..6a9babb 100644 --- a/library/dialog.tcl +++ b/library/dialog.tcl @@ -34,8 +34,9 @@ proc ::tk_dialog {w title text bitmap default args} { # Check that $default was properly given if {[string is integer -strict $default]} { if {$default >= [llength $args]} { - return -code error "default button index greater than number of\ - buttons specified for tk_dialog" + return -code error -errorcode {TK DIALOG BAD_DEFAULT} \ + "default button index greater than number of buttons\ + specified for tk_dialog" } } elseif {"" eq $default} { set default -1 |