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

Reply via email to