Re: [Tkinter-discuss] scrolling more widgets with one scrollbar

2011-02-03 Thread Michael Lange
Hi, Thus spoketh "Martin B." unto us on Thu, 3 Feb 2011 18:34:24 +0100: > Thanks this helps a lot. > Your code for keypress looks like you call internal Tcl/Tk commands ? Yes, as I said these commands are defined in text.tcl (on linux this can usually be found at /usr/lib/tk8.x or so), and th

Re: [Tkinter-discuss] scrolling more widgets with one scrollbar

2011-02-03 Thread Martin B.
sorry im late. this is picture with 'not synced rows'. http://oops.rajce.idnes.cz/nastenka/#xcg.jpg ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

Re: [Tkinter-discuss] scrolling more widgets with one scrollbar

2011-02-03 Thread Michael Lange
Hi again, Thus spoketh Michael Lange unto us on Thu, 3 Feb 2011 11:56:35 +0100: > I set up a minimal example that shows how to use this technique to set > up modified key bindings that allow to scroll two text widgets > synchronously with the Up and Down keys: > At a second glance my example

Re: [Tkinter-discuss] scrolling more widgets with one scrollbar

2011-02-03 Thread Martin B.
Thanks this helps a lot. Your code for keypress looks like you call internal Tcl/Tk commands ? Seems like my for mousewheel. But dont generate any signal i must use Button-4 and Button-5 on linux. def mousewheel_cb(event): direction = 1 if event.num == 5 else -1 for win in self

Re: [Tkinter-discuss] scrolling more widgets with one scrollbar

2011-02-03 Thread Michael Lange
Hi, Thus spoketh "Martin B." unto us on Tue, 1 Feb 2011 16:16:56 +0100: > 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 ? > >