[Tutor] Tkinter Canvas

Luke Paireepinart rabidpoobear at gmail.com
Fri Dec 8 20:49:37 CET 2006

Asrarahmed Kadri wrote:
> Hi Folks,
> I have a Tkinter canvas and a yscrollbar attached to it. It is working 
> fine but what I want is that when the mouse is in the canvas region, 
> the scroll button of the mouse should be able to control the upward 
> and downward movement, How to achieve this?
You should be able to bind the events that the mouse wheel generates in 
the canvas widget to the function that causes the scroll bar to scroll 
(forget what it's called.)
Have you tried this yet?
> Regards,
> Asrarahmed Kadri
> -- 
> To HIM you shall return.
> ------------------------------------------------------------------------
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list