ScrolledText get xy index of rowheader component?

J

J Wolfe

Hi,

I tried to get the xycoordinate of a click of the rowheader column of
Pmw's ScrolledText...and it returns the xycoordinate of the text
portion...even though I supplied it with the rowheader component.

self.scrolledtext.component('rowheader').index("@%d,%d" %
(event.x,event.y))

What am I doing wrong?

the call to my main scrolledtext looks something like this...

self.scrolledtext.index("@%d,%d" % (event.x,event.y))

and works as intended.

Jonathan
 
J

J Wolfe

Nevermind I figured it out...

I set self.dummyvar = self.scrolledtext.component('rowheader')

and then did something like so self.dummyvar.index("@%d,%d" %
(event.x,event.y))

not sure why it worked like that...but it did :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top