7. NumberSpinner

Last page update: November 09, 2011

Note

NumberSpinner features:

7.1. definition

pane.numberspinner([**kwargs])

7.2. description

numberSpinner is similar to NumberTextbox, but makes integer entry easier when small adjustments are required.

There are two features:

  • The down and up arrow buttons “spin” the number up and down.
  • Furthermore, when you hold down the buttons, the spinning accelerates to make coarser adjustments easier.

7.3. attributes

numberspinner attributes:

  • min: set the minimum value of the numberSpinner
  • max: set the maximum value of the numberSpinner

7.4. examples

Let’s see a code example:

class GnrCustomWebPage(object):
    def main(self,root,**kwargs):
        fb = root       .formbuilder(datapath='test1',cols=2)
        fb.numberSpinner(value='^.number',min=0,lbl='number')
        fb.div("""Try to hold down a button: the spinning accelerates to make coarser
                  adjustments easier""", font_size='.9em',text_align='justify',margin='5px')

Table Of Contents

Previous topic

6. menu

Next topic

8. RadioButton

This Page