Tkinter Canvas & Fast Scrolling/Dragging

Randall Hopper aa8vb at vislab.epa.gov
Tue Apr 20 06:52:39 EDT 1999


Fredrik Lundh:
 |Randall Hopper:
 |> Basically, what I want to do is turn off filling of canvas objects
 |> temporarily while the user is scrolling the canvas or they're dragging one
 |> of the shapes.  When the operation is finished (user releases the mouse),
 |> I'll turn fill back on.  
...
 |    scrollbar.bind("<Button-1>", my_canvas.no_detail)
 |    scrollbar.bind("<ButtonRelease-1>", my_canvas.full_detail)
...
 |another solution would be to hook into the scrollbar interface; see
 |http://www.dejanews.com/getdoc.xp?AN=464786051
 |for some details.
 |
 |but that only allows you to figure out when to switch to less
 |detail...  you could perhaps switch back after a short timeout,
 |or when the user moves the mouse back into the canvas.

Thanks Fredrik.  I'll give it a shot.

Randall





More information about the Python-list mailing list