Tk Source Code

Artifact [59ce3d7d]
Login

Artifact 59ce3d7db064b0deea86c43365c6f05eb03770a3:

Attachment "expose-bug.tcl" to ticket [3086887f] added by treectrl 2010-10-14 03:09:00.
toplevel .t
wm title .t "FAIL"
frame .t.f
text .t.f.t -yscrollcommand ".t.f.v set"
scrollbar .t.f.v -command ".t.f.t yview"
pack .t.f.t -side left -expand yes -fill both
pack .t.f.v -side right -fill y
pack .t.f

toplevel .t2
wm title .t2 "OK"
text .t2.t -yscrollcommand ".t2.v set"
scrollbar .t2.v -command ".t2.t yview"
pack .t2.t -side left -expand yes -fill both
pack .t2.v -side right -fill y

for {set line 0} {$line < 500} {incr line} {
	.t.f.t insert end "line $line\n"
	.t2.t insert end "line $line\n"
}

bind Text <Expose> { puts "<Expose> %W w=%w h=%h" }