summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2009-02-11 15:25:31 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2009-02-11 15:25:31 (GMT)
commit1307122f90550bea4c6d092dcea4a11a90147116 (patch)
treeee1a35ea727af3e0db3405220e2a9d4ad79a680c /library
parent46ba1af2132c4fadc6a68f17504c572498c5052b (diff)
downloadtk-1307122f90550bea4c6d092dcea4a11a90147116.zip
tk-1307122f90550bea4c6d092dcea4a11a90147116.tar.gz
tk-1307122f90550bea4c6d092dcea4a11a90147116.tar.bz2
Increase idiomaticity
Diffstat (limited to 'library')
-rw-r--r--library/demos/image2.tcl4
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
}