ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: Tk mouse wheel events?
by Anton Vredegoor other posts by this author
Aug 16 2002 9:40AM messages near this date
Tk mouse wheel events? | Re: Tk mouse wheel events?
On Thu, 15 Aug 2002 19:14:05 GMT, "Edward K. Ream" <edream@[...].net>  wrote:

> > from Tkinter import *
> >
> > def roll(event):
> >     print event.delta
> >
> > frame = Frame(width=200, height=200)
> > frame.pack()
> > frame.focus_set() # wheel events goes to focussed window
> > frame.bind("<MouseWheel>", roll)
> 
> Thanks for this code.  Alas, on my XP machine, the roll handler is called,
> and after a few calls tcl83.dll crashes.  I don't think I've ever seen a
> hard tcl crash like this before.
> 
> I didn't explicitly call focus_set(), and I suppose that shouldn't matter:
> the roll handler is only called when the canvas has focus.  The Text widgets
> work properly as they always have.

On my system (windows 98se) tcl83.dll also crashes after a frew scroll clicks.
Do text widgets scroll 'automatically', I mean without explicitly binding
<MouseWheel> ? If so, I think the source of the problem could be that there's
some conflict between automatic and explicit binding of mousewheel events.
Just speculation of course.

Anton.
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Edward K. Ream
Anton Vredegoor
Edward K. Ream
David LeBlanc
Edward K. Ream
Fredrik Lundh
Steve Holden
Jeff Epler

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved