diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-05-22 08:54:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 08:54:41 (GMT) |
commit | 9bc80dac47f6d43d0bbfbf10c4cc3848b175e97f (patch) | |
tree | 880c0b929091cb922c9f864b7a58b0e4ac90838a /Doc/whatsnew | |
parent | 6fba0314765d7c58a33e9859d9cd5bcc35d2fd0a (diff) | |
download | cpython-9bc80dac47f6d43d0bbfbf10c4cc3848b175e97f.zip cpython-9bc80dac47f6d43d0bbfbf10c4cc3848b175e97f.tar.gz cpython-9bc80dac47f6d43d0bbfbf10c4cc3848b175e97f.tar.bz2 |
gh-94473: Flatten arguments in tkinter.Canvas.coords() (GH-98479)
It now accepts not only "x1, y1, x2, y2, ..." and "[x1, y1, x2, y2, ...]",
but also "(x1, y1), (x2, y2), ..." and "[(x1, y1), (x2, y2), ...]".
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index caf2107..efbd2ca 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -532,6 +532,17 @@ threading profiling functions in all running threads in addition to the calling one. (Contributed by Pablo Galindo in :gh:`93503`.) +tkinter +------- + +* ``tkinter.Canvas.coords()`` now flattens its arguments. + It now accepts not only coordinates as separate arguments + (``x1, y1, x2, y2, ...``) and a sequence of coordinates + (``[x1, y1, x2, y2, ...]``), but also coordinates grouped in pairs + (``(x1, y1), (x2, y2), ...`` and ``[(x1, y1), (x2, y2), ...]``), + like ``create_*()`` methods. + (Contributed by Serhiy Storchaka in :gh:`94473`.) + types ----- |