| Version 1.9 Build 1556
|
|
Next: multiscale.disable - Function
Up: multiscale - Tool
Previous: multiscale - Tool
multiscale - Constructor
|
Package |
display |
|
Module |
widgets |
|
Tool |
multiscale |
Construct a multiscale
Synopsis
multiscale(parent, start, end, values, names, helps, constrain, entry, extend, length, resolution, orient, width, font, relief, borderwidth, foreground, background, fill, widgetset)
Arguments
parent |
|
Parent of the label |
|
|
Allowed: |
Tk frame |
start |
|
Lower limit of range |
|
|
Allowed: |
float |
|
|
Default: |
0.0 |
end |
|
Upper limit of range |
|
|
Allowed: |
float |
|
|
Default: |
100.0 |
values |
|
initial values |
|
|
Allowed: |
vector of floats |
|
|
Default: |
[0.0, 100.0] |
names |
|
text labels for each scale |
|
|
Allowed: |
vector of strings |
|
|
Default: |
['Minimum', 'Maximum'] |
helps |
|
popup help text for each label |
|
|
Allowed: |
vector of strings |
|
|
Default: |
"" |
constrain |
|
whether to enforce ordering of numbers |
|
|
Allowed: |
T F |
|
|
Default: |
T |
entry |
|
provide an entry box as well |
|
|
Allowed: |
T F |
|
|
Default: |
F |
extend |
|
extend the scale if entered value beyond current extrema |
|
|
Allowed: |
T F |
|
|
Default: |
F |
length |
|
length of the scale widgets |
|
|
Allowed: |
dimension |
|
|
Default: |
110 |
resolution |
|
step value along scales |
|
|
Allowed: |
float |
|
|
Default: |
1.0 |
orient |
|
orientation of scale |
|
|
Allowed: |
'horizontal'
'vertical' |
|
|
Default: |
'horizontal' |
width |
|
transverse width of the scales |
|
|
Allowed: |
dimension |
|
|
Default: |
15 |
font |
|
text font |
|
|
Allowed: |
X font |
|
|
Default: |
'' |
relief |
|
border relief |
|
|
Allowed: |
`flat' `ridge',
`raised' `sunken' `groove' |
|
|
Default: |
'flat' |
borderwidth |
|
border width |
|
|
Allowed: |
dimension |
|
|
Default: |
2 |
foreground |
|
color of text |
|
|
Allowed: |
X color |
|
|
Default: |
`black' |
background |
|
background color |
|
|
Allowed: |
X color |
|
|
Default: |
`lightgrey' |
fill |
|
how to expand when resized |
|
|
Allowed: |
'x' 'y' 'both' 'none |
|
|
Default: |
'none' |
widgetset |
|
widgetserver to use to make label |
|
|
Allowed: |
widgetserver toolXS |
|
|
Default: |
dws |
Returns
multiscale widget
Description
Constructs a multiscale according to the specified construction arguments,
and returns a ref to the widget.