Entry scroll doesn't work

VK "myname" at example.invalid
Sun May 29 11:03:56 EDT 2005


VK wrote:
> Hi!
> Can entry widget be scrolled?
> VK
> 
> TypeError: xview() takes exactly 2 arguments (4 given)
> 
> Code:
> 
> 
> 
> from Tkinter import *
> class ScrollEntry:
>         def __init__(self):
>             self.root = Tk()
>             self.scrollbar = Scrollbar(self.root,orient=HORIZONTAL,)
>             self.entry = Entry(self.root,xscrollcommand=self.scrollbar.set)
>             self.entry.focus()
>             self.entry.pack(side=TOP,fill=X)
>             self.scrollbar.pack(fill=X)
>             self.scrollbar.config(command=self.entry.xview)
>             self.entry.config()
> 
> 
> a=ScrollEntry()
> a.root.mainloop()

Already found:                  :)

http://infohost.nmt.edu/tcc/help/pubs/tkinter/entry-scrolling.html



More information about the Python-list mailing list