]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151678: Add tests for tkinter.Canvas (GH-151683)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 19 Jun 2026 09:13:41 +0000 (12:13 +0300)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 09:13:41 +0000 (09:13 +0000)
commitbb127c5a96a285f1f6b11261c1f0dc2b3c7f70ff
tree8cd191a7b195071cc9828337f6ba820491624196
parentcf3b3c11485a870d8e8c02579bed27a316838eb1
gh-151678: Add tests for tkinter.Canvas (GH-151683)

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.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_tkinter/test_widgets.py