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

2018-06-16 Thread Carol Willing


Carol Willing  added the comment:

This issue is "new contributor"-friendly.

The next steps would be to apply the patch to a recent version of Python 3, 
check if tests run cleanly, and if the patch resolves the issue.

I'm sorry ingrid that the patch review languished on the issue tracker.

--
nosy: +willingc
versions: +Python 3.6 -Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-08-03 Thread Jessica McKellar

Changes by Jessica McKellar :


--
keywords: +needs review
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-06-11 Thread ingrid

ingrid added the comment:

I updated the patch to use the gui check in Lib/test/support, and I renamed the 
test file to be test_turtle_guionly.

--
Added file: http://bugs.python.org/file35585/issue_16428.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-06-02 Thread ingrid

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-05-23 Thread Jessica McKellar

Changes by Jessica McKellar :


--
nosy: +jesstess

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-05-23 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +gregorlingl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-05-23 Thread ingrid

ingrid added the comment:

I tried the same script in Python 2.7 and Python 3.4.1 on OSX and had the same 
results.

--
nosy: +ingrid

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-11-07 Thread pythonick

New submission from pythonick:

In the standard turtle module, when a turtle has a custom shape of type 
"compound", it doesn't to respond to click events. No problem with polygon 
shapes.

Observed on Windows XP, python 3.2.3, turtle version 1.1b, and on Linux, python 
2.7. 

Test code:

##
import turtle
square = ((0,0),(0,20),(20,20),(20,0))
turtle.addshape("sq1", square) # sq1 = polygon shape
s = turtle.Shape("compound")
s.addcomponent(square, "red")
turtle.addshape("sq2", s) # sq2 = compound shape
t1 = turtle.Turtle(shape="sq1")
t2 = turtle.Turtle(shape="sq2")
t2.fd(20)
def click(x,y): print("click at",x,y)
t1.onclick(click)
t2.onclick(click)
turtle.mainloop()
##

When you click on the black square (i.e. t1), the message "click at..." is 
printed. When you click on the red square (i.e. t2), nothing happens.

--
components: Library (Lib)
messages: 175106
nosy: pythonick
priority: normal
severity: normal
status: open
title: turtle with compound shape doesn't get clicks
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com