Lines Matching refs:scale
1049 Widget.__init__(self, master, "ttk::scale", kw)
1053 """Modify or query scale options.
1069 x and y are pixel coordinates relative to the scale widget
1482 The Ttk Scale can be accessed through instance.scale, and Ttk Label
1493 Specifies how to display the label relative to the scale.
1504 self.scale = Scale(self, variable=self._variable, from_=from_, to=to)
1505 self.scale.bind('<<RangeChanged>>', self._adjust)
1507 # position scale and label according to the compound option
1510 self.scale.pack(side=scale_side, fill='x')
1517 # update the label as scale or variable changes
1533 self.scale = None
1537 """Adjust the label position according to the scale."""
1539 self.update_idletasks() # "force" scale redraw
1541 x, y = self.scale.coords()
1543 y = self.scale.winfo_y() - self.label.winfo_reqheight()
1545 y = self.scale.winfo_reqheight() + self.label.winfo_reqheight()
1549 from_ = _to_number(self.scale['from'])
1550 to = _to_number(self.scale['to'])
1565 """Return current scale value."""
1570 """Set new scale value."""