Message 158946 - Python tracker

Message158946

Author ned.deily
Recipients culler, ned.deily, ronaldoussoren
Date 2012-04-22.04:40:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335069647.48.0.606291860964.issue10731@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like the problem is that the current Cocoa Tcl/Tk 8.5.x returns an incorrect MouseWheel event.  Using the supplied test program and breakpointing in PythonCmd (around Modules/_tkinter.c:2027 in default), I found that it is being called from Tcl for MouseWheel events with an "argc" of 20, which looks suspiciously like the length of argv[1], "4302153816mouse_wheel", rather than the number of arguments which should be more like 3.  It may also be an issue that affects Python because _tkinter still uses the older Tcl_CreateCommand interface rather than the newer Tcl_CreateObjCommand.  The same Tcl behavior is observed with Python 2.7 _tkinter.c but there the bogus arguments are translated using PyString_FromString which is unaffected by the garbage arguments.  It might be possible to workaround this problem in _tkinter but the next step is to open a Tcl/Tk issue against the Cocoa implementation and push for a proper fix there.

http://www.tcl.tk/man/tcl8.5/TclLib/CrtCommand.htm
History
Date User Action Args
2012-04-22 04:40:47ned.deilysetrecipients: + ned.deily, ronaldoussoren, culler
2012-04-22 04:40:47ned.deilysetmessageid: <1335069647.48.0.606291860964.issue10731@psf.upfronthosting.co.za>
2012-04-22 04:40:46ned.deilylinkissue10731 messages
2012-04-22 04:40:46ned.deilycreate