Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
UmSenhorQualquer committed Sep 20, 2018
1 parent 1d0eb54 commit f9ce970
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyforms_gui/controls/control_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

class ControlNumber(ControlBase):
def __init__(self, *args, **kwargs):
"""
:param int minimum: Minimum value.
:param int maximum: Maximum value.
:param float default: Set the value. Default = 0.
:param int decimals: Decimals precision.
"""
self._min = kwargs.get('minimum', 0)
self._max = kwargs.get('maximum', 100)
if 'default' not in kwargs: kwargs['default'] = 0
Expand Down

0 comments on commit f9ce970

Please sign in to comment.