chiark / gitweb /
raise tooltip
[chiark-tcl-applet.git] / example
1 #!/usr/bin/wish8.4 -f
2 # -*- Tcl -*-
3
4 # usage:
5 #  xbatmon-simple-tray
6
7 source applet.tcl
8 source subproc.tcl
9
10 applet::setup-debug puts
11
12 foreach b {1 3} {
13     applet::setup-button-menu $b
14 }
15
16 .m1 add command -command { applet::msel; puts hi } -label hi
17 .m3 add command -command { applet::msel; puts boo } -label boo
18
19 #image create bitmap ims -file gs_s.xbm   
20 #image create bitmap ims -file /usr/share/ghostscript/8.71/lib/gs_s.xbm   
21 #setimage ims
22 #setimage ims
23
24 applet::setup-tooltip { puts VIS } { puts INVIS }
25 applet::tooltip-set "line\nanother"
26
27 proc cmdline {id orientation} {
28     global argv
29     return [concat $argv $id]
30 }
31
32 applet::setup-subproc cmdline