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

Class Entry
source code

object --+                
         |                
 _EGObject --+            
             |            
     _EGWidget --+        
                 |        
     _EGDataWidget --+    
                     |    
      _EGWidLabelEntry --+
                         |
                        Entry
Known Subclasses:
Password

Text entry.

The simplest user input component. Its contents are free-form and not filtered/masked.

Instance Methods [hide private]
  __init__(self, id, label="", value="", callback=None, editable=True, persistent=False, multiline=False, expand_policy=None)
Entry constructor.
  __setup_gui__(self)
  __configure_orientation__(self, setting)
  __setup_connections__(self)
  get_value(self)
Get data from this widget.
  set_value(self, value)
Set data to this widget.
  set_editable(self, value)
  get_editable(self)

Inherited from _EGWidLabelEntry: __repr__, __str__, get_label, set_label

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]
value  
callback  
multiline  
editable  

Inherited from _EGWidLabelEntry: 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, label="", value="", callback=None, editable=True, persistent=False, multiline=False, expand_policy=None)
(Constructor)

source code 
Entry constructor.
Parameters:
  • id - unique identifier.
  • label - what to show on a label on the left side of the widget.
  • value - initial content.
  • editable - if this field is editable by user.
  • 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.
  • multiline - if this entry can be multi-line.
  • expand_policy - how this widget should fit space, see ExpandPolicy.Policy.Rule.
Overrides: _EGWidLabelEntry.__init__

__setup_gui__(self)

source code 
Overrides: _EGWidLabelEntry.__setup_gui__

__configure_orientation__(self, setting)

source code 
Overrides: _EGWidLabelEntry.__configure_orientation__

__setup_connections__(self)

source code 

get_value(self)

source code 
Get data from this widget.
Overrides: _EGWidLabelEntry.get_value

set_value(self, value)

source code 
Set data to this widget.
Overrides: _EGWidLabelEntry.set_value

set_editable(self, value)

source code 

get_editable(self)

source code 

Class Variable Details [hide private]

value

Value:
_gen_ro_property("value")                                              
      

callback

Value:
_gen_ro_property("callback")                                           
      

multiline

Value:
_gen_ro_property("multiline")                                          
      

editable

Value:
property(get_editable,set_editable)