Why doesn't this work?

Michael Bakkemo a at b.c
Wed Oct 2 11:55:08 CEST 2002


>
> Because of the way Tk works.  You are setting up a lot of things before
> entering the mainloop(), and not giving Tk a chance to execute and
> update it's internal state (not your fault, really).
>
> But to fix things, add the line:
>
> sc.update()
>
> Just before:
>
> rect = MovingRect(root, sc, 40,40, 10, 10)
>
> [...]
>
> Chad Netzer
> cnetzer at mail.arc.nasa.gov


Thank you. That would have taken forever to figure out.






More information about the Python-list mailing list