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

Type UIntSpin

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.
Method Summary
  __init__(self, id, label, value, min, max, step, callback, persistent)
Unsigned Integer Spin constructor.
    Inherited from IntSpin
  get_value(self)
Get data from this widget.
  set_value(self, value)
Set data to this widget.
    Inherited from Spin
  __setup_connections__(self)
  __setup_gui__(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
    Inherited from Spin
  callback
  digits
  max
  min
  step
  value

Class Variable Summary
int default_min = 0                                                                     
    Inherited from IntSpin
int default_max = 2147483647                                                            

Method Details

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

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:
eagle.IntSpin.__init__

Class Variable Details

default_min

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Thu Apr 27 16:28:55 2006 http://epydoc.sf.net