Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 25th, 2004, 07:42 AM
libbs015 libbs015 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 libbs015 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problems scrolling in text areas

I am having problems using the scrollbar in a text box. When I create the scrollbar the text area shrinks in size, and even when I try to resize the text area, it remains the same. Here is the code!

scrollText1 = Scrollbar(self.text1)
scrollText1.config(command = self.text1.yview)
self.text1.config(yscrollcommand = scrollText1.set, height = 15, width = 85)
scrollText1.pack(side = RIGHT, fill = Y)

self.text1.grid(column = 1, row = 2, sticky = N+E+S+W)

self.text1 is previously declared. Any suggestions would be very appreciative

Thanks!

Reply With Quote
  #2  
Old June 25th, 2004, 09:09 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
Personally I use the scrolled text widget:

from ScrolledText import ScrolledText
self.text = ScrolledText(self.parent)

When you say shrinks in size - what exactly happens?

grim
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
  #3  
Old June 25th, 2004, 03:50 PM
libbs015 libbs015 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 libbs015 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
without the scrollbar the text area is 15 lines,
when i declare a scrollbar to accompany the text area, it shrinks to 6 lines, even when the text area is declared to be larger. This happens no matter where the configuration for the text area is stated.

Thanks for the help though, I will probably change my code to use your suggestion if I can't figure it out soon.

Thanks again!

Liz

Reply With Quote
  #4  
Old June 26th, 2004, 07:43 PM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
The scrollbar needs a container as a parent (Frame,Window), a text box is not enough it seems. If you set the scrollbars parent to be the containing frame the text box should size correctly.

grim

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > problems scrolling in text areas


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway