]> granicus.if.org Git - python/commit
ttk: fix LabeledScale and OptionMenu destroy() method (#3025) (#3030)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 9 Aug 2017 08:48:11 +0000 (10:48 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2017 08:48:11 +0000 (10:48 +0200)
commit33460fa7e0bd126bee739a66e1228665dc22e70f
tree4d4f8e3e931b165ffb6309b9acbb5cc3a61567a5
parente93135dbb265e801c0000a19cd9c5428d57d1cf4
ttk: fix LabeledScale and OptionMenu destroy() method (#3025) (#3030)

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.
(cherry picked from commit cd7e9c1b67d3d07ee03e0a79af2791c19031cecb)
Lib/tkinter/ttk.py
Misc/NEWS.d/next/Library/2017-08-08-14-44-37.bpo-31135.HH94xR.rst [new file with mode: 0644]