]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-151678: Add tests for tkinter.Canvas (GH-151683) (GH-151718)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 11:14:14 +0000 (13:14 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 11:14:14 +0000 (11:14 +0000)
commit92bd69674eb9a9f4011b22cdc24646e68e3a899b
tree218702155e287ade9d44c80147e056202007e347
parenta8252d557c1315bb278dcc3f40664ad2b66caee1
[3.13] gh-151678: Add tests for tkinter.Canvas (GH-151683) (GH-151718)

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