]> granicus.if.org Git - python/commit
ttk: fix LabeledScale and OptionMenu destroy() method (#3026)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 8 Aug 2017 17:15:52 +0000 (19:15 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2017 17:15:52 +0000 (19:15 +0200)
commit56e162ad5c5d3effe9b4f05d0179e1b6a2a2d9b8
tree7579e256827d2ae749c6b3712761a74d2d6640d7
parent245dafca85097dd8b84f02b01f39f5d32091754b
ttk: fix LabeledScale and OptionMenu destroy() method (#3026)

bpo-31135: Call the parent destroy() method even if the used
attribute doesn't exist.

The LabeledScale.destroy() method now also explicitly clears label
and scale attributes to help the garbage collector to destroy all
widgets.
Lib/lib-tk/ttk.py
Misc/NEWS.d/next/Library/2017-08-08-14-59-26.bpo-31135.9q1QdB.rst [new file with mode: 0644]