#
# This also uses the same variables as setup-subwindow.
-wm withdraw .
-
-tktray::icon .i -class example
-.i configure -docked 1
+namespace eval applet {
-fconfigure stdout -buffering none
-fconfigure stderr -buffering none
+proc become {} {
+ wm withdraw .
+ tktray::icon .i -class example
+ .i configure -docked 1
-namespace eval applet {
+ fconfigure stdout -buffering none
+ fconfigure stderr -buffering none
+}
# used by both menus and tooltips
variable posted 0