[Tkinter-discuss] scrolling more widgets with one scrollbar

Martin B. spooky.ln at tbs-software.com
Tue Feb 1 16:16:56 CET 2011

Hi all,
I need scroll 3 Text widgets with one scrollbar.
All is packed into grid [text, text, text, scrollbar]

all Text widgets have font on same size
how i scroll all 3 widgets 'synced' using scrollbar ?

i have a method which is scrollbar.command

def update_widgets(self, *args):
	# scrolling all 3 widgets
	for win in self.textwindows:

this scrolling widgets but after few 'slides' rows are not synced :(

and second question is 'how i set next 2 widgets and scrollbar if i
scroll some widget using keyboard? '

i think it must be something like scrollbar.set(*args) in
widget.yscrollcommand but i'm trying without luck.


More information about the Tkinter-discuss mailing list