10. slider

Last page update: November 15, 2011

Note

Slider features:

10.1. Definition

pane.horizontalSlider([**kwargs])
pane.verticalSlider([**kwargs])

10.2. Description

Slider is a scale with a handle you can move to select a value. You can choose between the horizontalSlider and the verticalSlider.

10.3. Attributes

slider attributes:

  • width: (horizontalSlider) MANDATORY - define the width of your horizontalSlider
  • height: (verticalSlider) MANDATORY - define the height of your verticalSlider
  • intermediateChanges: (Boolean) If True, it allows to changes value of slider during slider move
  • maximum: Add the maximum value of the slider. Default value is 100
  • minimum: Add the minimum value of the slider. Default value is 0

10.4. Examples

10.4.1. simple example

Let’s see a simple example:

class GnrCustomWebPage(object):
    def main(self,root,**kwargs):
        root.horizontalSlider(value='^integer_number',width='200px',
                              maximum=50, discreteValues=51)
        root.verticalSlider(value='^integer_number', height='100px',minimum=0)

Table Of Contents

Previous topic

9. SimpleTextarea

Next topic

11. filteringSelect, comboBox, dbSelect and dbCombobox

This Page