Hmmm, self.code.bind("<Button-4>",self.code.yview_scroll (-5 ,'units'))
works on my linux box but does not appear to work on my mac... Jerry On May 26, 2006, at 6:47 PM, Jerry LeVan wrote: > Hi, > > The following is from one of my tcl programs > > bind $ui_vars(code) <Button-4> { $ui_vars(code) yview scroll > -5 units } > bind $ui_vars(code) <Button-5> { $ui_vars(code) yview scroll > +5 units } > > $ui_vars(code) is a reference to a Text object. > > The effect of the code is to enable wheel mouse scrolling (five > lines per click). > > I can't figure out the magic words to do the same in Python ;( > > Can anyone help me? > > Jerry _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig