Entry scroll doesn't work

VK "myname" at example.invalid
Sun May 29 10:23:20 EDT 2005


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()



More information about the Python-list mailing list