473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

ScrolledCanvas/ScrolledText

So what the heck is going on. I have a Pmw.ScrollingCanvas and inside
I put a Pmw.ScrollingText and that all works but I can't get it to
scroll. I was thinking I needed an event like:

self.sc = Pmw.ScrolledCanvas(parent,
borderframe = 5,
labelpos = 'n',
usehullsize = 1,
hull_width = 700,
hull_height = 500,
hscrollmode = 'static',
vscrollmode = 'static',)

self._title = Pmw.ScrolledText(self.sc.interior(),
labelpos = 'w',
text_wrap='word',
usehullsize=1,
hull_height= 50,
hull_width=500)
titleVal = "Equation of state for %s" % (materialName)
self._title.insert(1.0, titleVal)
self._title.component("label").config(text="Title: ")

self.sc.component('canvas').bind('<Button-1>', self.scrolling)

def scrolling(self, event):
x = self.sc.canvasx(event.x)
y = self.sc.canvasy(event.y)
self.sc.resizescrollregion()

Sep 19 '08 #1
0 924

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

Similar topics

1
by: Andrew Wheatley | last post by:
In the text component, I use the insert method to insert a line of text. Initially, I set the foreground colour of the text component to yellow, that is, all text is yellow. What I'd like to do...
7
by: Justin Ezequiel | last post by:
What font is Tkinter using for displaying utf-8 characters? On my Windows XP, most of the characters with names (unicodedata.name) are displayed WYSIWYG. However, on my Mandrake (warning: Linux...
0
by: Donald L. Dietmeyer | last post by:
I am attempting to put together a "dumb terminal" using a Pmw.ScrolledText to communicate via a serial port with a box that does the echoing of characters it receives. How can I stop the...
1
by: Pekka Niiranen | last post by:
Hi there, after reading TkInter/thread -recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965 I wondered if it was possible to avoid using threads for the following problem: ...
1
by: dan.gass | last post by:
Hi, I am using the pmw tkinter package and having trouble getting the ScrolledCanvas widget to respond to the mouse wheel. I am running Windows XP. I've Googled it and came up empty. I...
1
by: MrBlueSky | last post by:
Hi, I've got a ScrolledCanvas object (sc) and have identified an item on the canvas to which I wish to scroll. I've been reading around and experimenting but with not much success. So far I've...
5
by: nik | last post by:
I've been trying to get the scrollbar and text box always going to the last line and have been completely unsuccessful. I've tried, ScrolledText, text.see, and text.yview_pickplace without...
0
by: rbann11 | last post by:
Thanks in advance, Hi, I am trying to put tkSnack's Minwave.py demo into Pmw Scrollcanvas, without success. I have included the sample, the error message and the documentation tkSnack says should...
3
by: xqxq | last post by:
I have a problem with a ScrolledText. I'm defining a function, which I would like to make a new window with only ScrolledText on it. I'm adding text from file 'zasady.txt', but it is not visible...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.