]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-151678: Add tests for tkinter.Canvas (GH-151683) (GH-151717)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 09:40:57 +0000 (11:40 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 09:40:57 +0000 (09:40 +0000)
commit30db1e208b8ef40576fb47042f27820521881ff4
treeac5f30322082fb93630ddec2bc66e2d776112661
parent15c6b62e4db14bed2f0c269ac17b5f961af6a947
[3.14] gh-151678: Add tests for tkinter.Canvas (GH-151683) (GH-151717)

Cover previously-untested Canvas methods in CanvasTest:

* item creation and types, bbox, coordinate conversion, move/scale,
  find and addtag queries, tags, item configuration, stacking order,
  text-item editing, selection, focus, scan and postscript;
* the create_arc, create_oval, create_bitmap, create_image,
  create_text and create_window item creation methods, checking
  coordinates, default and explicit options, valid enumerations and
  rejection of invalid values;
* tag_bind() and tag_unbind(), checking the returned function id and
  binding script, querying bound sequences, the add parameter, event
  delivery to items via a tag, and removal of a single binding by id
  or all bindings for a sequence.
(cherry picked from commit bb127c5a96a285f1f6b11261c1f0dc2b3c7f70ff)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_tkinter/test_widgets.py