[New-bugs-announce] [issue43018] unwanted label showing up in ttk.LabeledScale

Akuli report at bugs.python.org
Sun Jan 24 15:20:49 EST 2021


New submission from Akuli <akuviljanen17 at gmail.com>:

import tkinter
from tkinter import ttk
root = tkinter.Tk()
ttk.LabeledScale(root).pack()
root.mainloop()


Run this code and move the slider to center. You see something in front of the number. The problem is this line in ttk.py:

        tmp = Label(self).pack(side=label_side) # place holder

I tried deleting it, but then the label doesn't show up at all, and what remains is just a scale. Packing with a different side works, but that feels like a hack.

----------
components: Tkinter
files: ssss.png
messages: 385591
nosy: Akuli
priority: normal
severity: normal
status: open
title: unwanted label showing up in ttk.LabeledScale
versions: Python 3.9
Added file: https://bugs.python.org/file49765/ssss.png

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43018>
_______________________________________


More information about the New-bugs-announce mailing list