Is there a way to get a Scrollbar widget to control two widgets?
I would like to do something like:
...
self.textbox1 = Text(self.myc, yscrollbarcommand=self.scrollbar1.set)
self.textbox2 = Text(self.myc, yscrollbarcommand=self.scrollbar1.set)
self.scrollbar1.config(command=self.textbox1.yview)
se
I had to do this recently where one scroll bar needed to control two canvases.
The trick is to create a function which accepts info from the scrollbar and
then propagates it to the widgets to be scrolled. Some snippets from my code:
hscroll = Scrollbar(FF,orient=HORIZONTAL,command=Propagator)
d