473,799 Members | 2,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=HOR IZONTAL,)
self.entry = Entry(self.root ,xscrollcommand =self.scrollbar .set)
self.entry.focu s()
self.entry.pack (side=TOP,fill= X)
self.scrollbar. pack(fill=X)
self.scrollbar. config(command= self.entry.xvie w)
self.entry.conf ig()
a=ScrollEntry()
a.root.mainloop ()
Jul 19 '05 #1
1 1629
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=HOR IZONTAL,)
self.entry = Entry(self.root ,xscrollcommand =self.scrollbar .set)
self.entry.focu s()
self.entry.pack (side=TOP,fill= X)
self.scrollbar. pack(fill=X)
self.scrollbar. config(command= self.entry.xvie w)
self.entry.conf ig()
a=ScrollEntry()
a.root.mainloop ()


Already found: :)

http://infohost.nmt.edu/tcc/help/pub...scrolling.html
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
12550
by: Simon Wigzell | last post by:
I want to display HTML text inside a div and have the page open scrolled to the bottom. (My div has overflow:auto so that it appears with scroll bars) I have found this that works on a textarea: document.all.MyDivId.scrollTop = document.all.MyDivId].scrollHeight; But this doesn't work on a div. I am using a div because the text I am displaying contains HTML. Surely it is possible to simply set a scroll bar to the bottom in a div???...
36
72096
by: spence | last post by:
Hi All How do I make it so that when a user clicks in a search text field, the default entry (in this case "Search") is removed automatically - they are then faced with a blank search box and can type straight away Thanks in advance
12
4243
by: Scott Simonson | last post by:
Does anyone have any idea why Access's module editor doesn't scroll with the mouse. I noticed this behavor in Access 2k also. While viewing code in a module (or any thing for that matter) the wheel mouse does not scroll the window. Scott
4
1368
by: Marlene A. Roman | last post by:
Is there a way that when I show some fields below that don't fit in the screen, it automatically makes a scroll down event so the user doesn't have to scroll down the page by his own? Thanks in advance
1
5672
by: davidr | last post by:
Hi, I am using Divs with CSS to setup a layout for a site. I am using the <Div>s and style sheets below. I want the TopMenu to go across the entire top of the browser. It does go across the entire top, but let say my screen resolution is 800x600 and the "Content" Div forces scroll bars for the user to scroll to the right to see an object then the TopMenu doesn't go all the way across. The top menu will only go to the screen...
6
10708
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I'm using the VScrollBar and set it as follow: m_vScrollBar.Minimum = -19602; m_vScrollBar.Maximum = 0; m_vScrollBar.SmallChange = 1; m_vScrollBar.LargeChange = 1089; m_vScrollBar.Value = m_vScrollBar.Maximum; The scroll bar is set to start from the bottom.
1
3339
by: =?Utf-8?B?Um9iZXJ0Vw==?= | last post by:
Hi, I'm developing a WPF Web Application. I'm surprised there were no WPF-specific newsgroups, so I'm posting in dotnet-general. I implemented the TreeListView available with sample code at this blog: http://blogs.msdn.com/atc_avalon_team/archive/2006/03/01/541206.aspx The one in the blog doesn't scroll, though if I surround it with a "ScrollView" and set the Scroll bars (horz/vert) to Auto, it does scroll
53
2981
by: Aaron Gray | last post by:
I jokingly say this is the late entry :) Okay I have read all the event entry comments from John's Resig's AddEvent comepition blog :- http://ejohn.org/projects/flexible-javascript-events/ and put together the following offering for my LGPL'ed library functions :- function addEvent( el, type, fn, cascade) {
11
11437
by: dizzydangler | last post by:
Hi, all! I'm a new user, looking to get some help on a form problem in MS Access 2007 I haven't been able to crack. I've built a form that prompts users to enter new record data, then click "Update Database" to save the record to the table. Each entry creates a new record in the original table (all data goes to the same table). I've used the button wizard to add a "previous record" and a "next record" button, which work in the sense...
0
9543
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10488
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10237
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5588
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4144
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.