diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-02-11 15:25:31 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-02-11 15:25:31 (GMT) |
commit | cab826dd13561e25319890f82445a6d36effc973 (patch) | |
tree | ee1a35ea727af3e0db3405220e2a9d4ad79a680c /library | |
parent | 268cab3d247deaabe130d87d6869a8e2d222cf7a (diff) | |
download | tk-cab826dd13561e25319890f82445a6d36effc973.zip tk-cab826dd13561e25319890f82445a6d36effc973.tar.gz tk-cab826dd13561e25319890f82445a6d36effc973.tar.bz2 |
Increase idiomaticity
Diffstat (limited to 'library')
-rw-r--r-- | library/demos/image2.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/demos/image2.tcl b/library/demos/image2.tcl index 0444dd4..eed64ad 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.11 2007/12/13 15:27:07 dgp Exp $ +# RCS: @(#) $Id: image2.tcl,v 1.12 2009/02/11 15:25:31 dkf Exp $ if {![info exists widgetDemo]} { error "This script should be run from the \"widget\" demo." @@ -38,7 +38,7 @@ proc loadDir w { proc selectAndLoadDir w { global dirName set dir [tk_chooseDirectory -initialdir $dirName -parent $w -mustexist 1] - if {[string length $dir] != 0} { + if {$dir ne ""} { set dirName $dir loadDir $w } |