]> granicus.if.org Git - python/commit
ttk: fix LabeledScale and OptionMenu destroy() method (#3025)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 8 Aug 2017 17:41:21 +0000 (19:41 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2017 17:41:21 +0000 (19:41 +0200)
commitcd7e9c1b67d3d07ee03e0a79af2791c19031cecb
treef3d6e64a14dcbada5a2af799e5bc3f94267c64d3
parent733d0f63c562090a2b840859b96028d6ec0a4803
ttk: fix LabeledScale and OptionMenu destroy() method (#3025)

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