summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorE-Paine <63801254+E-Paine@users.noreply.github.com>2020-12-15 19:42:55 (GMT)
committerGitHub <noreply@github.com>2020-12-15 19:42:55 (GMT)
commitb9ced83cf427ec86802ba4c9a562c6d9cafc72f5 (patch)
tree45b094ca45f1ebead76b813e762c914b0416f784 /Lib/tkinter
parent0603f8087abab4d56fd275051ab3fd76a477539a (diff)
downloadcpython-b9ced83cf427ec86802ba4c9a562c6d9cafc72f5.zip
cpython-b9ced83cf427ec86802ba4c9a562c6d9cafc72f5.tar.gz
cpython-b9ced83cf427ec86802ba4c9a562c6d9cafc72f5.tar.bz2
bpo-40219: Lowered ttk LabeledScale dummy (GH-21467)
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/ttk.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/tkinter/ttk.py b/Lib/tkinter/ttk.py
index 968fd54..f3a2f76 100644
--- a/Lib/tkinter/ttk.py
+++ b/Lib/tkinter/ttk.py
@@ -1538,7 +1538,10 @@ class LabeledScale(Frame):
scale_side = 'bottom' if self._label_top else 'top'
label_side = 'top' if scale_side == 'bottom' else 'bottom'
self.scale.pack(side=scale_side, fill='x')
- tmp = Label(self).pack(side=label_side) # place holder
+ # Dummy required to make frame correct height
+ dummy = Label(self)
+ dummy.pack(side=label_side)
+ dummy.lower()
self.label.place(anchor='n' if label_side == 'top' else 's')
# update the label as scale or variable changes