[Tkinter-discuss] Newbie's Scrollbar question

2008-04-20 Thread solaris_1234
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

Re: [Tkinter-discuss] Newbie's Scrollbar question

2008-04-20 Thread Cam Farnell
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