[Tkinter-discuss] Newbie's Scrollbar question
solaris_1234
solaris_1234 at yahoo.com
Sat Apr 19 18:56:09 CEST 2008
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)
self.scrollbar1.config(command=self.textbox2.yview)
....
I understand the second self.scrollbar1.config is the only valid binding for scrollbar1.
Any hints on how to do this ?
Thanks,
tkinter newbie
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20080419/05141059/attachment.htm
More information about the Tkinter-discuss
mailing list