8 .m1 add command -command { msel; puts hi } -label hi
9 .m3 add command -command { msel; puts boo } -label boo
11 image create bitmap ims -file gs_s.xbm
12 #image create bitmap ims -file /usr/share/ghostscript/8.71/lib/gs_s.xbm
15 image create photo ph-dummy ;# -width 40 -height 23
16 .i configure -image ph-dummy
20 settooltip "line\nanother"
22 destroy [frame .i.make-exist]
23 destroy [frame .i.i.make-exist]
27 catch { destroy .i.i.c }
28 if {![winfo exists .i.i]} return
29 destroy [frame .i.i.make-exist]
31 # .i.i configure -width [winfo width .i.i] -height [winfo height .i.i]
33 # puts stderr $emsg...
36 frame .i.i.b -background darkblue -bd 1
37 pack .i.i.b -fill both -side left -expand 1
38 frame .i.i.b.c -container 1 -background orange ;# -width 35 -height 15
39 pack .i.i.b.c -fill both -side left -expand 1
40 puts "ID [winfo id .i.i.b.c]"
41 # bind .i.i.b.c <Configure> iiconfigure
47 puts "IC [winfo id .i.i]"
48 set w [winfo width .i.i]
49 set h [winfo height .i.i]
52 ph-dummy configure -width $w -height 2 ;#$h
53 # if {![string length [info command .i.i]]} {
57 # .i.i.b.c configure -width $w -height $h -background blue
59 exec /home/ian/things/Chiark-utils/chiark-utils.git/cprogs/xacpi-simple \
60 -into [winfo id .i.i.b.c] &
63 ##bind all <<IconCreate>> { puts sponge }
64 ##bind all <<Sping>> { puts sping%W }
66 #bind .i <<IconConfigure>> innerwindow
69 #foreach w {. .i .i.i} {
70 bind all <<IconCreate>> { puts "create %W" }
71 bind all <<IconConfigure>> { puts "config %W" }
76 #foreach ev {MapRequest ResizeRequest ConfigureRequest Create Gravity
80 # bind .i <$ev> { puts "$ev => [winfo children .i]" }
85 # puts "children: [winfo children .i]"
92 # frame .i.inner.c -container 1 -background yellow
96 # puts [winfo id .i.c]