

def __init__(self, master=None, variable=None, from_=0, to=10, **kw):
    "Construct an horizontal LabeledScale with parent master, a\n        variable to be associated with the Ttk Scale widget and its range.\n        If variable is not specified, a Tkinter.IntVar is created.\n\n        WIDGET-SPECIFIC OPTIONS\n\n            compound: 'top' or 'bottom'\n                Specifies how to display the label relative to the scale.\n                Defaults to 'top'.\n        "
    self._label_top = (kw.pop('compound', 'top') == 'top')
    Frame.__init__(self, master, **kw)
    self._variable = (variable or Tkinter.IntVar(master))
    self._variable.set(from_)
    self._last_valid = from_
    self.label = Label(self)
    self.scale = Scale(self, variable=self._variable, from_=from_, to=to)
    self.scale.bind('<<RangeChanged>>', self._adjust)
    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)
    self.label.place(anchor=('n' if (label_side == 'top') else 's'))
    self.__tracecb = self._variable.trace_variable('w', self._adjust)
    self.bind('<Configure>', self._adjust)
    self.bind('<Map>', self._adjust)

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py LabeledScale.__init__/original