Created on 2014-06-20 06:14 by Lita.Cho, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (5) |
|
|
msg221068 - (view) |
Author: Lita Cho (Lita.Cho) * |
Date: 2014-06-20 06:14 |
When you call turtle.shapetransform with a transformation matrix, nothing happens. You have to call turtle.shapesize or turtle.shearfactor first before turtle.shapetransform will take affect. Here is an example. turtle.shapetransform(2,0,0,2) turtle.shapesize(1) turtle.shapetransform(2,0,0,2) Nothing happens with the first call of shapetransform, but after calling shapesize, shapetransform then doubles in size, like it should. |
|
|
msg221130 - (view) |
Author: Lita Cho (Lita.Cho) * |
Date: 2014-06-20 22:54 |
Have a patch that fixes this. Rather than calling self._update() directory, we should be calling self._pen(resizemode="user"), since the user is changing the size of the turtle, just like how shapesize and shearfactor are updating. |
|
|
msg221231 - (view) |
Author: Roundup Robot (python-dev)  |
Date: 2014-06-22 08:24 |
New changeset 39b094798e14 by Raymond Hettinger in branch '3.4': Issue #21812: Trigger immediate transformation in turtle.shapetransform(). http://hg.python.org/cpython/rev/39b094798e14 |
|
|
msg221233 - (view) |
Author: Raymond Hettinger (rhettinger) *  |
Date: 2014-06-22 08:29 |
Thanks for noticing this and for the patch. In the future, to make patches easier to review, please isolate the core logic change from inconsequential whitespace and linewrap edits. Also note that breaking strings in the middle to accommodate a max line length can be error-prone (in this case a space was dropped between "matrix:" and "must"). |
|
|
msg221322 - (view) |
Author: Lita Cho (Lita.Cho) * |
Date: 2014-06-22 22:47 |
Absolutely! I totally forgot I made those changes for PEP8! Next time, I will totally submit just the change associated with the ticket. Thank you, Raymond, for the feedback and reviewing my code! |
|
|
History |
|
|
|
Date |
User |
Action |
Args |
2022-04-11 14:58:05 |
admin |
set |
github: 66011 |
2014-06-22 22:47:00 |
Lita.Cho |
set |
messages: + |
2014-06-22 08:29:08 |
rhettinger |
set |
status: open -> closedversions: + Python 3.4, Python 3.5type: behaviormessages: + resolution: fixedstage: resolved |
2014-06-22 08:24:03 |
python-dev |
set |
nosy: + python-devmessages: + |
2014-06-22 08:05:30 |
rhettinger |
set |
messages: - |
2014-06-22 07:54:43 |
rhettinger |
set |
assignee: rhettingermessages: + nosy: + rhettinger |
2014-06-20 22:54:54 |
Lita.Cho |
set |
files: + turtle_shapetransform.patchkeywords: + patchmessages: + |
2014-06-20 06:14:50 |
Lita.Cho |
set |
nosy: + jesstess |
2014-06-20 06:14:39 |
Lita.Cho |
create |
|