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

Type Label

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


Text label
Method Summary
  __init__(self, id, label, halignment, valignment, expand_policy, active, visible)
Label constructor.
  __str__(self)
  get_value(self)
Get data from this widget.
  set_value(self, value)
Set data to this widget.
    Inherited from _EGWidget
  __configure_orientation__(self, setting)
  __get_widgets__(self)
Return a list of internal widgets this Eagle widget contains.
  _get_widgets(self)
  _set_widgets(self, value)
  disable(self)
Same as set_active( False )
  enable(self, active)
Set the widget as active.
  focus(self)
Give keyboard focus to this widget.
  get_active(self)
Return True if it's active (enabled) or False inactive (disabled).
  get_visible(self)
Return true if widget is visible (shown).
  hide(self)
Make widget invisible.
  is_active(self)
Return True if it's active (enabled) or False inactive (disabled).
  is_enabled(self)
Return True if it's active (enabled) or False inactive (disabled).
  is_visible(self)
Return true if widget is visible (shown).
  set_active(self, active)
Set the widget as active.
  set_inactive(self)
Same as set_active( False )
  set_visible(self, visible)
Show or hide widget based on value of 'visible'.
  show(self)
Make widget visible.
    Inherited from _EGObject
  __repr__(self)
    Inherited from _AutoGenId
  __get_id__(classobj)
(Class method)
    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
  label
    Inherited from _EGWidget
  _widgets
  active
  app
  visible
    Inherited from _EGObject
  id

Class Variable Summary
float BOTTOM = 1.0                                                                   
float CENTER = 0.5                                                                   
float LEFT = 0.0                                                                   
float MIDDLE = 0.5                                                                   
float RIGHT = 1.0                                                                   
float TOP = 0.0                                                                   
    Inherited from _EGDataWidget
bool persistent = False
    Inherited from _EGWidget
int ORIENTATION_HORIZONTAL = 1                                                                     
int ORIENTATION_VERTICAL = 0                                                                     
    Inherited from _AutoGenId
int last_id_num = 0                                                                     

Instance Method Details

__init__(self, id=None, label='', halignment=0.0, valignment=0.5, expand_policy=None, active=True, visible=True)
(Constructor)

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

get_value(self)

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

set_value(self, value)

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

Property Details

label

Get Method:
get(...)
Set Method:
set(...)

Class Variable Details

BOTTOM

Type:
float
Value:
1.0                                                                   

CENTER

Type:
float
Value:
0.5                                                                   

LEFT

Type:
float
Value:
0.0                                                                   

MIDDLE

Type:
float
Value:
0.5                                                                   

RIGHT

Type:
float
Value:
1.0                                                                   

TOP

Type:
float
Value:
0.0                                                                   

Generated by Epydoc 2.1 on Sun Apr 22 21:30:28 2007 http://epydoc.sf.net