diff options
Diffstat (limited to 'library/demos/knightstour.tcl')
-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 } } |