[Pythonmac-SIG] How can I say...

Jerry LeVan jerry.levan at eku.edu
Sat May 27 00:47:54 CEST 2006


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


More information about the Pythonmac-SIG mailing list