diff options
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)]} { |