}
return [list [expr 100*$now/$full] $ac $st {}]
}
+}
+proc bmp_ext {} {
+ if {$::tk_version >= 8.5} {
+ return ".xbm"
+ } else {
+ return ".bmp"
+ }
}
variable colors
variable help
$c create rectangle 10 3 30 13 -outline black
$c create rectangle 30 6 33 10 -outline black -fill black
- $c create rectangle 10 3 30 13 -outline black -stipple @[file join $tk_library demos images gray25.bmp] -fill black -tag energy
+ $c create rectangle 10 3 30 13 -outline black -stipple @[file join $tk_library demos images gray25[bmp_ext]] -fill black -tag energy
$c create polygon 2 1 6 8 3 8 8 15 6 9 9 9 5 1 -outline red -fill red -tag power