469,915 Members | 2,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,915 developers. It's quick & easy.

Entry scroll doesn't work

VK
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()
Jul 19 '05 #1
1 1528
VK
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/pub...scrolling.html
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Simon Wigzell | last post: by
4 posts views Thread by Marlene A. Roman | last post: by
6 posts views Thread by =?Utf-8?B?U2hhcm9u?= | last post: by
1 post views Thread by =?Utf-8?B?Um9iZXJ0Vw==?= | last post: by
53 posts views Thread by Aaron Gray | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.