error if tkcon is embedded.
+2013-01-22 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * tkcon.tcl (tkcon show): catch deiconify as it will throw an
+ error if tkcon is embedded.
+
2012-12-27 Jeff Hobbs <jeffh@ActiveState.com>
* tkcon.tcl (edit): add support for ::tkcon::OPT(tabspace) to
if {![winfo exists $PRIV(root)]} {
eval [linsert $args 0 ::tkcon::Init]
}
- wm deiconify $PRIV(root)
- raise $PRIV(root)
+ # this may throw an error if toplevel is embedded
+ catch {wm deiconify $PRIV(root); raise $PRIV(root)}
focus -force $PRIV(console)
}
ti* {