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

Class _EGWidLabelEntry
source code

object --+            
         |            
 _EGObject --+        
             |        
     _EGWidget --+    
                 |    
     _EGDataWidget --+
                     |
                    _EGWidLabelEntry
Known Subclasses:
Entry, Spin, Color, Font, Selection, Progress

Widget that holds a label and an associated Entry.


Note: _EGWidLabelEntry must NOT be used directly! You should use a widget that specialize this instead.

Attention: Widget Developers: You must setup an instance attribute _entry before using it, since this will be set as mnemonic for this label and also returned in __get_widgets__().

Instance Methods [hide private]
  __init__(self, id, persistent, label="", expand_policy=None)
  __setup_gui__(self)
  __configure_orientation__(self, setting)
  get_value(self)
Get data from this widget.
  set_value(self, value)
Set data to this widget.
  set_label(self, label)
  get_label(self)
  __str__(self)
str(x)
  __repr__(self)
str(x)

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

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


Class Variables [hide private]
label  

Inherited from _EGDataWidget: persistent

Inherited from _EGWidget: ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, app

Inherited from _EGObject: id

Inherited from object: __class__


Method Details [hide private]

__init__(self, id, persistent, label="", expand_policy=None)
(Constructor)

source code 
Parameters:
  • expand_policy - one or two ExpandPolicy elements. If just one is provided, it will be used for both inner elements. If two are provided, first will be used for label and second for entry.
Overrides: _EGDataWidget.__init__

__setup_gui__(self)

source code 

__configure_orientation__(self, setting)

source code 
Overrides: _EGWidget.__configure_orientation__

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)

set_label(self, label)

source code 

get_label(self)

source code 

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: _EGObject.__str__

__repr__(self)
(Representation operator)

source code 
str(x)
Overrides: _EGObject.__str__

Class Variable Details [hide private]

label

Value:
property(get_label,set_label)