]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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 08:07:02 +0000 (01:07 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 08:07:02 +0000 (11:07 +0300)
commitaf08bcab8f7e0067de54a91b11ca5e4b99ec11b7
tree8f655a2292bbc30b676e6b2272a62efce1b834e7
parent4cfbcffd3d0bbaab1610896ad9ff9c588467681d
[3.11] gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692) (GH-107723)

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/tkinter/__init__.py
Lib/tkinter/test/test_tkinter/test_images.py
Misc/NEWS.d/next/Library/2023-08-06-15-29-00.gh-issue-100814.h195gW.rst [new file with mode: 0644]