Menu

#75 Canvas + ScrolledWindow auto scroll redraw loop

bug
open
nobody
Tix Source (67)
5
2005-01-11
2005-01-11
Doug Blank
No

I haven't used Tix long, but everything I have tried so
far has been very stable. However, I'm getting into
some type of self-reference loop with the following code:

import Tix
root = Tix.Tk()
root.withdraw()
win = Tix.Toplevel()
options = "label.padX 4"
frame = Tix.LabelFrame(win, label="ScrolledWindow",
options=options, height=100, width=100)
swindow = Tix.ScrolledWindow(frame,height=100,
width=100) #, scrollbar='auto')
canvas = Tix.Canvas(swindow, bg="white",height=100,
width=100)
frame.form()
swindow.form()
canvas.form()

If I comment out the use of the scrolled window, it
stops behaving badly. I have a feeling it is the
scrollbar set to auto. Is this my fault? Is there a way
I can use a canvas with an auto scrollbar?

Thanks for the great work, and for any help you might
be able to give me!

-Doug

Discussion


Log in to post a comment.