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)
Label constructor.
  get_value(self)
Get data from this widget.
  set_value(self, value)
Set data to this widget.
  __str__(self)

Inherited from _EGWidget: __get_resize_mode__, __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]
LEFT  
RIGHT  
CENTER  
TOP  
MIDDLE  
BOTTOM  

Inherited from _EGDataWidget: persistent

Inherited from AutoGenId: last_id_num

Inherited from object: __class__


Properties [hide private]
label  

Inherited from _EGWidget: app

Inherited from _EGObject: id


Method Details [hide private]

__init__(self, id=None, label="", halignment=LEFT, valignment=MIDDLE)
(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.
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]

LEFT

Value:
0.0                                                                   
      

RIGHT

Value:
1.0                                                                   
      

CENTER

Value:
0.5                                                                   
      

TOP

Value:
0.0                                                                   
      

MIDDLE

Value:
0.5                                                                   
      

BOTTOM

Value:
1.0                                                                   
      

Property Details [hide private]

label

Get Method:
unreachable.get(self)
Set Method:
unreachable.set(self, value)
Delete Method:
None