1ttk::scale(n)                  Tk Themed Widget                  ttk::scale(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       ttk::scale - Create and manipulate a scale widget
9

SYNOPSIS

11       ttk::scale pathName ?options...?
12______________________________________________________________________________
13

DESCRIPTION

15       A ttk::scale widget is typically used to control the numeric value of a
16       linked variable that varies uniformly over some range. A scale displays
17       a slider that can be moved along over a trough, with the relative posi‐
18       tion of the slider over the trough indicating the value  of  the  vari‐
19       able.
20

STANDARD OPTIONS

22       -class                -cursor              -style
23       -takefocus
24
25       See the ttk_widget manual entry for details on the standard options.
26

WIDGET-SPECIFIC OPTIONS

28       Command-Line Name:-command
29       Database Name:  command
30       Database Class: Command
31
32              Specifies  the  prefix  of  a Tcl command to invoke whenever the
33              scale's value is changed via a widget command. The  actual  com‐
34              mand consists of this option followed by a space and a real num‐
35              ber indicating the new value of the scale.
36
37       Command-Line Name:-from
38       Database Name:  from
39       Database Class: From
40
41              A real value corresponding to the left or top end of the scale.
42
43       Command-Line Name:-length
44       Database Name:  length
45       Database Class: Length
46
47              Specifies the desired long dimension  of  the  scale  in  screen
48              units  (i.e.  any  of the forms acceptable to Tk_GetPixels). For
49              vertical scales this  is  the  scale's  height;  for  horizontal
50              scales it is the scale's width.
51
52       Command-Line Name:-orient
53       Database Name:  orient
54       Database Class: Orient
55
56              Specifies  which  orientation  whether the widget should be laid
57              out horizontally or vertically. Must  be  either  horizontal  or
58              vertical or an abbreviation of one of these.
59
60       Command-Line Name:-to
61       Database Name:  to
62       Database Class: To
63
64              Specifies  a real value corresponding to the right or bottom end
65              of the scale.  This value may be either  less  than  or  greater
66              than the -from option.
67
68       Command-Line Name:-value
69       Database Name:  value
70       Database Class: Value
71
72              Specifies the current floating-point value of the variable.
73
74       Command-Line Name:-variable
75       Database Name:  variable
76       Database Class: Variable
77
78              Specifies  the  name  of a global variable to link to the scale.
79              Whenever the value of  the  variable  changes,  the  scale  will
80              update to reflect this value.  Whenever the scale is manipulated
81              interactively, the variable will  be  modified  to  reflect  the
82              scale's new value.
83

WIDGET COMMAND

85       pathName cget option
86              Returns the current value of the specified option; see ttk::wid‐
87              get(n).
88
89       pathName configure ?option? ?value option value ...?
90              Modify or query widget options; see ttk::widget(n).
91
92       pathName get ?x y?
93              Get the current value of the -value option, or the value  corre‐
94              sponding  to  the coordinates x,y if they are specified. X and y
95              are pixel coordinates relative to the scale widget origin.
96
97       pathName identify x y
98              Returns the name of the element at position x, y.  See ttk::wid‐
99              get(n).
100
101       pathName instate statespec ?script?
102              Test the widget state; see ttk::widget(n).
103
104       pathName set value
105              Set  the  value of the widget (i.e. the -value option) to value.
106              The value will be clipped to the range given by  the  -from  and
107              -to  options.  Note  that  setting the linked variable (i.e. the
108              variable named in the -variable  option)  does  not  cause  such
109              clipping.
110
111       pathName state ?stateSpec?
112              Modify or query the widget state; see ttk::widget(n).
113

INTERNAL COMMANDS

115       pathName coords ?value?
116              Get  the  coordinates corresponding to value, or the coordinates
117              corresponding to the current value of the -value option if value
118              is omitted.
119

SEE ALSO

121       ttk::widget(n), scale(n)
122

KEYWORDS

124       scale, slider, trough, widget
125
126
127
128Tk                                    8.5                        ttk::scale(n)
Impressum