Newbie: Tkinter Mouse Wheel Support

Moshe Zadka moshez at math.huji.ac.il
Mon Mar 20 15:27:53 EST 2000


On Mon, 20 Mar 2000, Johnny Cass wrote:

> What do you have to do to enable mouse wheel support in your Tkinter
> Python programs? (e.g. bind wheel to scroll bar etc.). Is there some
> kind of binding that you need to code?

It would be nice to know the platform you're using. IIRC, mouse wheel on 
X-Windows is simply buttons 4 and 5 (for wheel up and wheel down), so you
better bind to those. For windows, you'll have to wait for some windows
expert.

HTH,
--
Moshe Zadka <mzadka at geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list