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

Class Label
source code

object --+            
         |            
 _EGObject --+        
             |        
     _EGWidget --+    
                 |    
     _EGDataWidget --+
                     |
        object --+   |
                 |   |
         AutoGenId --+
                     |
                    Label

Text label

Instance Methods [hide private]
  __init__(self, id=None, label="", halignment=LEFT, valignment=MIDDLE, expand_policy=None)
Label constructor.
  get_value(self)
Get data from this widget.
  set_value(self, value)
Set data to this widget.
  __str__(self)

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

Inherited from _EGObject: __repr__

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


Class Methods [hide private]

Inherited from AutoGenId: __get_id__


Class Variables [hide private]
label  
LEFT  
RIGHT  
CENTER  
TOP  
MIDDLE  
BOTTOM  

Inherited from _EGDataWidget: persistent

Inherited from _EGWidget: ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, app

Inherited from _EGObject: id

Inherited from AutoGenId: last_id_num

Inherited from object: __class__


Method Details [hide private]

__init__(self, id=None, label="", halignment=LEFT, valignment=MIDDLE, expand_policy=None)
(Constructor)

source code 
Label constructor.
Parameters:
  • id - may not be provided, it will be generated automatically.
  • label - what this label will show.
  • halignment - horizontal alignment, like LEFT, RIGHT or CENTER.
  • valignment - vertical alignment, like TOP, BOTTOM or MIDDLE.
  • expand_policy - how this widget should fit space, see ExpandPolicy.Policy.Rule.
Overrides: _EGDataWidget.__init__

get_value(self)

source code 
Get data from this widget.
Overrides: _EGDataWidget.get_value
(inherited documentation)

set_value(self, value)

source code 
Set data to this widget.
Overrides: _EGDataWidget.set_value
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Overrides: _EGObject.__str__

Class Variable Details [hide private]

label

Value:
_gen_ro_property("label")                                              
      

LEFT

Value:
0.0                                                                    
      

RIGHT

Value:
1.0                                                                    
      

CENTER

Value:
0.5                                                                    
      

TOP

Value:
0.0                                                                    
      

MIDDLE

Value:
0.5                                                                    
      

BOTTOM

Value:
1.0