chiark
/
gitweb
/
~ian
/
chiark-tcl-applet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip
[chiark-tcl-applet.git]
/
example
diff --git
a/example
b/example
index 57e87083d5bf1a19d295895efac94dbd50749e6a..4a6a16a2e886bbacfb88d9d6096f6383a97e1d27 100755
(executable)
--- a/
example
+++ b/
example
@@
-1,4
+1,5
@@
-#!/usr/bin/wish8.4
+#!/usr/bin/wish8.4 -f
+# -*- Tcl -*-
source applet.tcl
source applet.tcl
@@
-7,8
+8,21
@@
source applet.tcl
.m1 add command -command { msel; puts hi } -label hi
.m3 add command -command { msel; puts boo } -label boo
.m1 add command -command { msel; puts hi } -label hi
.m3 add command -command { msel; puts boo } -label boo
-image create bitmap ims -file /usr/share/ghostscript/8.71/lib/gs_s.xbm
-setimage ims
+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
setuptooltip
settooltip "line\nanother"
setuptooltip
settooltip "line\nanother"
+
+proc innerwindow {id} {
+ puts IICONFIG
+ puts "IC $id"
+
+ .i.i.b configure -background darkblue -bd 1
+exec /home/ian/things/Chiark-utils/chiark-utils.git/cprogs/xacpi-simple \
+ -into $id &
+}
+
+setupinnerwindow 40