Newbie: Tkinter Mouse Wheel Support

Johnny Cass johnnycass at icon.co.za
Mon Mar 20 15:39:23 EST 2000


Mashe,

I'm using RedHat 6.1 (i.e. XWindows). How and / or to what do I make the
binding?

Thanks for your help.
- Johnny

Moshe Zadka wrote:

> 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