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/megawidget.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/megawidget.tcl')
-rw-r--r-- | library/megawidget.tcl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/library/megawidget.tcl b/library/megawidget.tcl index 1cd2900..9b9be92 100644 --- a/library/megawidget.tcl +++ b/library/megawidget.tcl @@ -76,8 +76,14 @@ package require Tk 8.6 } } - method CreateHull {} {error "method must be overridden"} - method Create {} {error "method must be overridden"} + method CreateHull {} { + return -code error -errorcode {TCL OO ABSTRACT_METHOD} \ + "method must be overridden" + } + method Create {} { + return -code error -errorcode {TCL OO ABSTRACT_METHOD} \ + "method must be overridden" + } method WhenIdle {method args} { if {![info exists IdleCallbacks($method)]} { |