]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-100814: Fix exception for invalid callable value of Tkinter image option...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 16 Aug 2023 12:30:31 +0000 (05:30 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 12:30:31 +0000 (14:30 +0200)
commit6fd572f3b3dcc00cd80ba8e9a5a7c3a9cefc60cb
treeb7cd3e0167a816c1fc0d436295e6088fec0ad18c
parentea6865242c184c8afc816e0211652f0d04d9b8f8
[3.12] gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692) (#107722)

gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692)

Passing a callable object as an option value to a Tkinter image now raises
the expected TclError instead of an AttributeError.
(cherry picked from commit 50e3cc9748eb2103eb7ed6cc5a74d177df3cfb13)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_tkinter/test_images.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2023-08-06-15-29-00.gh-issue-100814.h195gW.rst [new file with mode: 0644]