]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-151678: Add tests for tkinter.Canvas (GH-151683) (GH-151716)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 10:47:36 +0000 (12:47 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 10:47:36 +0000 (10:47 +0000)
commitbe26b8d67fb31090ae63531090b82d278bb8b4c0
tree67ec2b96e64016c1f59c48f771cfa0245e5bba85
parent81e9c085187af9a823b305b4ae1b9e0f82b21820
[3.15] gh-151678: Add tests for tkinter.Canvas (GH-151683) (GH-151716)

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