diff options
Diffstat (limited to 'test/toxy/setup.wid')
-rw-r--r-- | test/toxy/setup.wid | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/toxy/setup.wid b/test/toxy/setup.wid index 05e0164..0794ce8 100644 --- a/test/toxy/setup.wid +++ b/test/toxy/setup.wid @@ -19,6 +19,15 @@ proc ::toxy::package_require {pkg dll} { } } +# valid options: "show", "hide" +proc ::toxy::console {op} { + if {[catch {::console $op}]} { + if {[catch {package require tkcon}] == 0} { + tkcon $op + } + } +} + # FIXME this should be explicitly requested # In order to keep the state after tk canvas has been destroyed # try setting -variable and -textvariable traces |