Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Missing update event in window manager

Closed / Invalid1508591fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-06-19 12:26:03
The following sample shows a text and a scrollbar with
not default width. The width of the scrollbar is not
updated accordingly before packing = the widgets are
overlapping.

thx, regards,
thomas


#############
package require Tk

toplevel .t
text .t.text
scrollbar .t.scroll -orient vertical -width 11

.t.text configure -yscrollcommand [list .t.scroll set]
.t.scroll configure -command [list .t.text yview]

pack .t.text -fill both -expand yes -side left
pack .t.scroll -fill y -side left
tombertplain2006-06-19 19:27:23
Logged In: YES 
user_id=696043

Forgot the OS: On Win XP - linux not tested
dkfplain2006-06-22 15:01:14
Logged In: YES 
user_id=79902

Please resubmit to the tktoolkit project

(If you're [pack]ing a scrollbar and a text widget together,
pack the scrollbar first. But that doesn't change the fact
that the scrolbar is getting the wrong width. It's just not
a Tcl problem, it's a Tk problem.)
Log in (anonymous is fine) to add a comment.