X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl-applet.git;a=blobdiff_plain;f=example;h=2d07e86d135c6cb5a952452febc8c9f1af4c86e0;hp=6d3eb65a9452bc9620570f290060b256c2c048a8;hb=refs%2Fheads%2Fmaster;hpb=26a08255c2b85fb059d91c408c01851e87e7fa68 diff --git a/example b/example deleted file mode 100755 index 6d3eb65..0000000 --- a/example +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/wish8.4 -f -# -*- Tcl -*- - -# usage: -# xbatmon-simple-tray - -source applet.tcl -source subproc.tcl - -applet::setup-debug puts - -foreach b {1 3} { - applet::setup-button-menu $b -} - -.m1 add command -command { applet::msel; puts hi } -label hi -.m3 add command -command { applet::msel; puts boo } -label boo - -#image create bitmap ims -file gs_s.xbm -#image create bitmap ims -file /usr/share/ghostscript/8.71/lib/gs_s.xbm -#setimage ims -#setimage ims - -applet::setup-tooltip { puts VIS } { puts INVIS } -applet::tooltip-set "line\nanother" - -proc cmdline {id orientation} { - return [list xacpi-simple -into $id] -} - -applet::setup-subproc cmdline