Tkinter: scrolling the canvas items AND widgets

Greg Ewing see_reply_address at something.invalid
Fri Sep 20 04:00:38 CEST 2002


jmdeschamps wrote:

> This code lets me scroll the graphical items but the widgets stay put
> using PythonWin 2.2.1 on Windows 2000

 >

> for i in range(1):
>     f=Entry(canvas)
>     f.place(x=10,y=10)


I think you need to create a window item on the
canvas, with the window attached to it, something
like this :

       f = Entry(canvas)
       canvas.create_window(10, 10, window = f)

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list