From 98cc0e906a953845ae5df65d80075b1c46e1e1c2 Mon Sep 17 00:00:00 2001 From: sls Date: Fri, 16 Jun 1995 08:19:16 +0000 Subject: [PATCH] Initial revision --- images_list.tcl | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 images_list.tcl diff --git a/images_list.tcl b/images_list.tcl new file mode 100644 index 0000000..1cc0e3b --- /dev/null +++ b/images_list.tcl @@ -0,0 +1,31 @@ +# +# $Id$ +# +# Contributed by Gero Kohnert (gero@marvin.franken.de) 1995 +# + +widget images_list { + object_include tkinspect_list + param title "Images" + method get_item_name {} { return image } + method update {target} { + $self clear + foreach image [lsort [send $target image names]] { + $self append $image + } + } + method retrieve {target image} { + set result "# image configuration for [list $image]\n" + append result "# ([send $target image width $image]x[send $target image height $image] [send $target image type $image] image)\n" + append result "$image config" + foreach spec [send $target [list $image config]] { + if {[llength $spec] == 2} continue + append result " \\\n\t[lindex $spec 0] [list [lindex $spec 4]]" + } + append result "\n" + return $result + } + method send_filter {value} { + return $value + } +} -- 2.23.0