LabelEntryScale is an Itcl widget combining a labeled entry with a scale widget to make a scale with an editable entry field.
left Left arrow button. right Right arrow button. scale Tk scale widget. scaleframe Tk frame containing scale widget.
-command Command to execute when the value changes. -from Scale range -from. -increment Amount to add or subtract for each button push. -orient Widget orientation: horizontal or vertical. -show_arrows Flag: if true, display left and right arrows for incrementing the value. -state Set the state to normal or disabled (greyed out). -to Scale range -to. -value Set the value in the entry.
increment {sign} Increment (1) or decrement (-1) the value by the current increment. scaleCmd {newValue} This method is called for changes in the scale widget. It does nothing unless the value has changed, since the Scale has a motion event that is constantly being invoked. start_increment {sign} Start incrementing if not already doing so. stop_increment {} Stop incrementing.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory