Module eagle :: Class UIntSpin
[hide private]
[frames] | no frames]

Class UIntSpin
source code

object --+                        
         |                        
 _EGObject --+                    
             |                    
     _EGWidget --+                
                 |                
     _EGDataWidget --+            
                     |            
      _EGWidLabelEntry --+        
                         |        
                      Spin --+    
                             |    
                       IntSpin --+
                                 |
                                UIntSpin

Unsigned integer-only Spin button.

Convenience widget that behaves like IntSpin with minimum value always greater or equal zero.

Instance Methods [hide private]
  __init__(self, id, label="", value=None, min=0, max=None, step=None, callback=None, persistent=False)
Unsigned Integer Spin constructor.

Inherited from IntSpin: __setup_connections__, __setup_gui__, get_value, set_value

Inherited from _EGWidLabelEntry: __repr__, __str__

Inherited from _EGWidget: __get_resize_mode__, __get_widgets__, hide, set_active, set_inactive, show

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__


Class Variables [hide private]
default_min  

Inherited from IntSpin: default_max

Inherited from _EGDataWidget: persistent

Inherited from object: __class__


Properties [hide private]

Inherited from Spin: callback, digits, max, min, step, value

Inherited from _EGWidLabelEntry: label

Inherited from _EGWidget: app

Inherited from _EGObject: id


Method Details [hide private]

__init__(self, id, label="", value=None, min=0, max=None, step=None, callback=None, persistent=False)
(Constructor)

source code 
Unsigned Integer Spin constructor.
Parameters:
  • id - unique identifier.
  • label - what to show on a label on the left side of the widget.
  • value - initial content.
  • min - minimum value, must be greater or equal zero.
  • max - maximum value. If None, default_max will be used.
  • step - step to use to decrement/increment using buttons.
  • callback - function (or list of functions) that will be called when this widget have its data changed. Function will receive as parameters:
    • App reference
    • Widget reference
    • new value
  • persistent - if this widget should save its data between sessions.
Overrides: IntSpin.__init__

Class Variable Details [hide private]

default_min

Value:
0