Last page update: November 09, 2011
Note
NumberSpinner features:
- Type: Dojo widget
- Common attributes: check the common attributes section
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.
numberspinner attributes:
- min: set the minimum value of the numberSpinner
- max: set the maximum value of the numberSpinner
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')