diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-08-08 17:41:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-08 17:41:21 (GMT) |
commit | cd7e9c1b67d3d07ee03e0a79af2791c19031cecb (patch) | |
tree | f3d6e64a14dcbada5a2af799e5bc3f94267c64d3 /Misc | |
parent | 733d0f63c562090a2b840859b96028d6ec0a4803 (diff) | |
download | cpython-cd7e9c1b67d3d07ee03e0a79af2791c19031cecb.zip cpython-cd7e9c1b67d3d07ee03e0a79af2791c19031cecb.tar.gz cpython-cd7e9c1b67d3d07ee03e0a79af2791c19031cecb.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-08-08-14-44-37.bpo-31135.HH94xR.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-08-08-14-44-37.bpo-31135.HH94xR.rst b/Misc/NEWS.d/next/Library/2017-08-08-14-44-37.bpo-31135.HH94xR.rst new file mode 100644 index 0000000..60068fb --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-08-08-14-44-37.bpo-31135.HH94xR.rst @@ -0,0 +1,4 @@ +ttk: fix the destroy() method of LabeledScale and OptionMenu classes. +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. |