when embedding. [Bug #44]
2012-12-27 Jeff Hobbs <jeffh@ActiveState.com>
+ * tkcon.tcl (::tkcon::InitUI): catch deiconify to prevent error
+ when embedding. [Bug #44]
+
* tkcon.tcl (::tkcon::ExpandMethodname): improved expansion for
xotcl methods. Also enhance expansion to allow break/continue
signals to differentiate "I'm not responsible" results from "I
if {!$PRIV(WWW)} {
wm title $root "tkcon $PRIV(version) $title"
- if {$PRIV(showOnStartup)} { wm deiconify $root }
+ if {$PRIV(showOnStartup)} {
+ # this may throw an error if toplevel is embedded
+ catch {wm deiconify $root}
+ }
}
if {$PRIV(showOnStartup)} { focus -force $PRIV(console) }
if {$OPT(gc-delay)} {