[issue16428] turtle with compound shape doesn't get clicks

ingrid report at bugs.python.org
Tue Jun 3 06:39:15 CEST 2014


ingrid added the comment:

Looks like the issue is that when you are registering mouse events through turtle, it uses Shape._item. For polygon shapes, that's the actual shape item, but for compound shapes, it is an array of shape items. I have attached a patch that makes it so when there is a compound shape, it will iterate over the _item array and add the listener to each individual shape.

----------
keywords: +patch
Added file: http://bugs.python.org/file35463/issue_16428.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16428>
_______________________________________


More information about the Python-bugs-list mailing list