Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6dec4ea

Browse files
committed
Issue #21812: Trigger immediate transformation in turtle.shapetransform().
1 parent f51531e commit 6dec4ea

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/turtle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2945,7 +2945,7 @@ def shapetransform(self, t11=None, t12=None, t21=None, t22=None):
29452945
self._stretchfactor = a11, a22
29462946
self._shearfactor = a12/a22
29472947
self._tilt = alfa
2948-
self._update()
2948+
self.pen(resizemode="user")
29492949

29502950

29512951
def _polytrafo(self, poly):

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ Ingrid Cheung
235235
Albert Chin-A-Young
236236
Adal Chiriliuc
237237
Matt Chisholm
238+
Lita Cho
238239
Anders Chrigström
239240
Tom Christiansen
240241
Vadim Chugunov

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Library
2929

3030
- Issue #21491: socketserver: Fix a race condition in child processes reaping.
3131

32+
- Issue #21812: turtle.shapetransform did not tranform the turtle on the
33+
first call. (Issue identified and fixed by Lita Cho.)
34+
3235
- Issue #21635: The difflib SequenceMatcher.get_matching_blocks() method
3336
cache didn't match the actual result. The former was a list of tuples
3437
and the latter was a list of named tuples.

0 commit comments

Comments
 (0)