Skip to content

Commit 50566e2

Browse files
author
csaba
committed
* ../../examples/scrollutil/*.tcl: Demo scripts using scrollabe widget
containers slightly improved.
1 parent 27d34f7 commit 50566e2

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

examples/scrollutil/BwScrollableFrmContent.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pack $tf -side top -expand yes -fill both
279279
wm deiconify .
280280

281281
#
282-
# Work around a potential accuracy problem related to scaling
282+
# Work around a potential accuracy problem related to [winfo reqwidth $cf]
283283
#
284284
tkwait visibility $sf
285285
while {[lindex [$sf xview] 1] != 1.0} {

examples/scrollutil/BwScrollableFrmDemo1.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pack $f -expand yes -fill both
129129
wm deiconify .
130130

131131
#
132-
# Work around a potential accuracy problem related to scaling
132+
# Work around a potential accuracy problem related to [winfo reqwidth $cf]
133133
#
134134
tkwait visibility $sf
135135
while {[lindex [$sf xview] 1] != 1.0} {

examples/scrollutil/ScrolledFrmContent.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pack $tf -side top -expand yes -fill both
281281
wm deiconify .
282282

283283
#
284-
# Work around a potential accuracy problem related to scaling
284+
# Work around a potential accuracy problem related to [winfo reqwidth $cf]
285285
#
286286
tkwait visibility $sf
287287
while {[lindex [$sf xview] 1] != 1.0} {

examples/scrollutil/ScrolledFrmDemo1.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pack $f -expand yes -fill both
124124
wm deiconify .
125125

126126
#
127-
# Work around a potential accuracy problem related to scaling
127+
# Work around a potential accuracy problem related to [winfo reqwidth $cf]
128128
#
129129
tkwait visibility $sf
130130
while {[lindex [$sf xview] 1] != 1.0} {

examples/scrollutil/SuScrollableFrmContent.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,10 @@ pack $tf -side top -expand yes -fill both
278278
wm deiconify .
279279

280280
#
281-
# Work around a potential accuracy problem related to scaling
281+
# Work around a potential accuracy problem related to [winfo reqwidth $cf]
282282
#
283283
tkwait visibility $sf
284+
set width [$sf cget -width]
284285
while {[lindex [$sf xview] 1] != 1.0} {
285286
$sf configure -width [incr width]
286287
update idletasks

examples/scrollutil/SuScrollableFrmDemo1.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ pack $f -expand yes -fill both
115115
wm deiconify .
116116

117117
#
118-
# Work around a potential accuracy problem related to scaling
118+
# Work around a potential accuracy problem related to [winfo reqwidth $cf]
119119
#
120120
tkwait visibility $sf
121+
set width [$sf cget -width]
121122
while {[lindex [$sf xview] 1] != 1.0} {
122123
$sf configure -width [incr width]
123124
update idletasks

0 commit comments

Comments
 (0)