diff options
author | das <das> | 2009-04-10 16:34:55 (GMT) |
---|---|---|
committer | das <das> | 2009-04-10 16:34:55 (GMT) |
commit | 9b14e8d2b4b817429e6fca75d054e717dccca5ed (patch) | |
tree | 88aca7f3f762d1bfcce103d8cdb85ab61ead5043 /library | |
parent | 8f62bc09a4dc5af49bd3c8c6bd31b5855c2cb336 (diff) | |
download | tk-9b14e8d2b4b817429e6fca75d054e717dccca5ed.zip tk-9b14e8d2b4b817429e6fca75d054e717dccca5ed.tar.gz tk-9b14e8d2b4b817429e6fca75d054e717dccca5ed.tar.bz2 |
* library/demos/knightstour.tcl: fix knightstour demo not running from
interactive wish.
Diffstat (limited to 'library')
-rw-r--r-- | library/demos/knightstour.tcl | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/library/demos/knightstour.tcl b/library/demos/knightstour.tcl index 95ee6ca..b52e38f 100644 --- a/library/demos/knightstour.tcl +++ b/library/demos/knightstour.tcl @@ -245,13 +245,11 @@ proc CreateGUI {} { tkwait window $dlg } -if {!$tcl_interactive} { - if {![winfo exists .knightstour]} { - if {![info exists widgetDemo]} { wm withdraw . } - set r [catch [linsert $argv 0 CreateGUI] err] - if {$r} { - tk_messageBox -icon error -title "Error" -message $err - } - if {![info exists widgetDemo]} { exit $r } +if {![winfo exists .knightstour]} { + if {![info exists widgetDemo]} { wm withdraw . } + set r [catch [linsert $argv 0 CreateGUI] err] + if {$r} { + tk_messageBox -icon error -title "Error" -message $err } + if {![info exists widgetDemo]} { exit $r } } |