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

Class Font
source code

object --+                
         |                
 _EGObject --+            
             |            
     _EGWidget --+        
                 |        
     _EGDataWidget --+    
                     |    
      _EGWidLabelEntry --+
                         |
                        Font

Button to select fonts.

It show current/last selected font and may pop-up a new dialog to select a new one.

Instance Methods [hide private]
  __init__(self, id, label="", font="sans 12", callback=None, persistent=False)
Font selector constructor.
  __setup_gui__(self)
  __setup_connections__(self)
  get_value(self)
  set_value(self, value)

Inherited from _EGWidLabelEntry: __repr__, __str__

Inherited from _EGWidget: __get_resize_mode__, __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 _EGDataWidget: persistent

Inherited from object: __class__


Properties [hide private]
font  
callback  

Inherited from _EGWidLabelEntry: label

Inherited from _EGWidget: app

Inherited from _EGObject: id


Method Details [hide private]

__init__(self, id, label="", font="sans 12", callback=None, persistent=False)
(Constructor)

source code 
Font selector constructor.
Parameters:
  • id - unique identifier.
  • label - what to show on a label on the left side of the widget.
  • font - 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.
Overrides: _EGWidLabelEntry.__init__

__setup_gui__(self)

source code 
Overrides: _EGWidLabelEntry.__setup_gui__

__setup_connections__(self)

source code 

get_value(self)

source code 
Overrides: _EGWidLabelEntry.get_value

set_value(self, value)

source code 
Overrides: _EGWidLabelEntry.set_value

Property Details [hide private]

font

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

callback

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