

def _adjust(self, *args):
    'Adjust the label position according to the scale.'

    def adjust_label():
        self.update_idletasks()
        (x, y) = self.scale.coords()
        if self._label_top:
            y = (self.scale.winfo_y() - self.label.winfo_reqheight())
        else:
            y = (self.scale.winfo_reqheight() + self.label.winfo_reqheight())
        self.label.place_configure(x=x, y=y)
    from_ = _to_number(self.scale['from'])
    to = _to_number(self.scale['to'])
    if (to < from_):
        (from_, to) = (to, from_)
    newval = self._variable.get()
    if (not (from_ <= newval <= to)):
        self.value = self._last_valid
        return
    self._last_valid = newval
    self.label['text'] = from_
    self.after_idle(adjust_label)

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py LabeledScale._adjust/VarMisuse@206/266 `newval`->`from_`