From 20e22577efb08f5d7316af00fcfe0533a598975b Mon Sep 17 00:00:00 2001 From: sls Date: Fri, 16 Jun 1995 08:40:10 +0000 Subject: [PATCH] Use a color photo. --- about.tcl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/about.tcl b/about.tcl index c6dc49f..381e12f 100644 --- a/about.tcl +++ b/about.tcl @@ -12,7 +12,7 @@ dialog about { global tkinspect tkinspect_library wm withdraw $self wm transient $self . - pack [frame $self.border -relief ridge -bd 4] + pack [frame $self.border -relief ridge -bd 4] -expand 1 -fill both label $self.title -text "tkinspect" -font $slot(boldFont) label $self.ver \ -text "Release $tkinspect(release) ($tkinspect(release_date))" \ @@ -21,10 +21,15 @@ dialog about { -font $slot(obliqueFont) frame $self.mug -bd 4 label $self.mug.l -text "Sam Shen " - label $self.mug.bm -bitmap @$tkinspect_library/sls.xbm -bd 2 \ + global about_priv + if ![info exists about_priv(mug_image)] { + set about_priv(mug_image) \ + [image create photo -file $tkinspect_library/sls.ppm] + } + label $self.mug.bm -image $about_priv(mug_image) -bd 2 \ -relief sunken - pack $self.mug.l $self.mug.bm -in $self.mug \ - -side left -fill both -expand yes + pack $self.mug.l -side left -fill both -expand yes + pack $self.mug.bm -fill none button $self.ok -text "Ok" -command "destroy $self" pack $self.title $self.ver $self.com $self.mug \ -in $self.border -side top -fill x -- 2.23.0