From 1dc9c58c0f6a43d1a6bc33ae285f29e0256e5e28 Mon Sep 17 00:00:00 2001 From: dkf Date: Mon, 12 Aug 2002 13:38:47 +0000 Subject: Tweaked resizing behaviour of the image-viewer demo. --- ChangeLog | 6 ++++++ library/demos/image2.tcl | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f49822..94ba97f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-08-12 Donal K. Fellows + + * library/demos/image2.tcl: Tweaked the behaviour of the directory + box on resize, as resizing of the overall window tends to be + common given the sample images. + 2002-08-08 Mo DeJong * unix/tkUnixWm.c (WmTransientCmd): Apply fix for diff --git a/library/demos/image2.tcl b/library/demos/image2.tcl index fc40612..9328e8a 100644 --- a/library/demos/image2.tcl +++ b/library/demos/image2.tcl @@ -3,7 +3,7 @@ # This demonstration script creates a simple collection of widgets # that allow you to select and view images in a Tk label. # -# RCS: @(#) $Id: image2.tcl,v 1.5 2001/11/15 14:13:13 dkf Exp $ +# RCS: @(#) $Id: image2.tcl,v 1.6 2002/08/12 13:38:48 dkf Exp $ if {![info exists widgetDemo]} { error "This script should be run from the \"widget\" demo." @@ -83,8 +83,8 @@ entry $w.dir.e -width 30 -textvariable dirName button $w.dir.b -pady 0 -padx 2m -text "Select Dir." \ -command "selectAndLoadDir $w" bind $w.dir.e "loadDir $w" -pack $w.dir.e -side left -fill y -padx 2m -pady 2m -pack $w.dir.b -side left -fill y -padx {0 2m} -pady 2m +pack $w.dir.e -side left -fill both -padx 2m -pady 2m -expand true +pack $w.dir.b -side left -fill y -padx {0 2m} -pady 2m labelframe $w.f -text "File:" -padx 2m -pady 2m listbox $w.f.list -width 20 -height 10 -yscrollcommand "$w.f.scroll set" @@ -99,6 +99,6 @@ labelframe $w.image -text "Image:" label $w.image.image -image image2a pack $w.image.image -padx 2m -pady 2m -grid $w.dir - -sticky w -padx 1m -pady 1m -in $w.mid +grid $w.dir - -sticky ew -padx 1m -pady 1m -in $w.mid grid $w.f $w.image -sticky nw -padx 1m -pady 1m -in $w.mid grid columnconfigure $w.mid 1 -weight 1 -- cgit v0.12