Scrolling tkinter Canvas

Fredrik Lundh fredrik at pythonware.com
Fri Mar 23 08:01:30 CET 2001


Daniel Chamberlin wrote:
> I am unable to scroll a canvas.  could someone look at the
> code squib below and point out what needs to be changed?

to enable scrolling, you need to set the "scrollregion" option.

    canvas.config(scrollregion="0 0 100 100")
    canvas.config(scrollregion=canvas.bbox(ALL))

http://www.pythonware.com/library/tkinter/introduction/x1643-concepts.htm
=> concepts => coordinate systems

Cheers /F





More information about the Python-list mailing list