[Tkinter-discuss] Issue with scrolling in a Text() widget on a mac

Alexnb alexnbryan at gmail.com
Sat Jul 19 18:38:04 CEST 2008




Kevin Walzer-5 wrote:
> 
> Alexnb wrote:
>> Hello everyone!
>> 
>> So, I have a texbox widget and I connected a scrollbar to it. On my PC
>> everything works great. But on my mac, you can't scroll when you click
>> the
>> box and dragging the actual bar is very choppy. The only way it works
>> like
>> it should is the actual arrow on the end of the bar. I am wondering if
>> this
>> can be fixed? or is it just a weird bug you have to deal with?
>> 
>> Here is the code:
>> 
>>         self.scrollbar = Scrollbar(self.textFrameBuffer)
>>         self.scrollbar.pack(side=RIGHT, fill=Y)
>> 
>>         self.text = Text(self.textFrameBuffer,
>>                          yscrollcommand=self.scrollbar.set)
>>         self.text.pack(side=LEFT, fill=BOTH, expand=YES)
>> 
>> 
> This is just a guess, because there isn't enough code here to check, but 
> did you set the command for the scrollbar widget? Something like
> 
> self.scrollbar.configure(command=self.text.yview)
> 
> ?
> 
> I don't see that you've set this.
> 
> -- 
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
> 
> 

Yes sorry. I do actually have that, I just forgot to put it in because it
was below some comments. Everything works perfect on windows, but not on
mac, which is the weird part. I think it is just maybe an issue in Tkinter
with mac. 

-- 
View this message in context: http://www.nabble.com/Issue-with-scrolling-in-a-Text%28%29-widget-on-a-mac-tp18541172p18546400.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.



More information about the Tkinter-discuss mailing list