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

Class Password
source code

object --+                    
         |                    
 _EGObject --+                
             |                
     _EGWidget --+            
                 |            
     _EGDataWidget --+        
                     |        
      _EGWidLabelEntry --+    
                         |    
                     Entry --+
                             |
                            Password

Password entry.

Like Entry, but will show '*' instead of typed chars.

Instance Methods [hide private]
  __init__(self, id, label="", value="", callback=None, persistent=False, expand_policy=None)
Password constructor.

Inherited from Entry: __configure_orientation__, __setup_connections__, __setup_gui__, get_editable, get_value, set_editable, set_value

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]

Inherited from Entry: callback, editable, multiline, value

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, persistent=False, expand_policy=None)
(Constructor)

source code 
Password constructor.
Parameters:
  • id - unique identifier.
  • label - what to show on a label on the left side of the widget.
  • value - initial content.
  • 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.
  • expand_policy - how this widget should fit space, see ExpandPolicy.Policy.Rule.
Overrides: Entry.__init__