Tkinter: scrolling the canvas items AND widgets

jmdeschamps jmdeschamps at cvm.qc.ca
Fri Sep 20 14:45:10 CEST 2002


Greg Ewing <see_reply_address at something.invalid> wrote in message news:<3D8A8146.3030506 at something.invalid>...
> 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)

Thanks, :)) - works beautifully!
Jean-Marc



More information about the Python-list mailing list