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

Class Group
source code

object --+        
         |        
 _EGObject --+    
             |    
     _EGWidget --+
                 |
                Group

Group of various components.

Group is a component that holds other components, always in a vertical layout.

Group has a frame and may show a label.

Instance Methods [hide private]
  _get_app(self)
  _set_app(self, value)
  __init__(self, id, label="", children=None, horizontal=False, border=BORDER_ETCHED_IN, expand_policy=None)
Group constructor.
  __setup_gui__(self)
  __add_widgets_to_app__(self)
  set_label(self, label)
  get_label(self)
  set_border(self, border)
  get_border(self)

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

Inherited from _EGObject: __repr__, __str__

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


Class Variables [hide private]
children  
horizontal  
BORDER_NONE  
BORDER_IN  
BORDER_OUT  
BORDER_ETCHED_IN  
BORDER_ETCHED_OUT  
app  
label  
border  

Inherited from _EGWidget: ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL

Inherited from _EGObject: id

Inherited from object: __class__


Method Details [hide private]

_get_app(self)

source code 

_set_app(self, value)

source code 

__init__(self, id, label="", children=None, horizontal=False, border=BORDER_ETCHED_IN, expand_policy=None)
(Constructor)

source code 
Group constructor.
Parameters:
  • id - unique identified.
  • label - displayed at top-left.
  • children - a list of eagle widgets that this group contains.
  • horizontal - if widgets should be laid out horizontally.
  • border - can be one of Group.BORDER_* values or None to disable border and label completely. Note that some themes may have different appearance for borders and some may not respect BORDER_NONE, so if you really want no border, use None to disable it. Note that Groups without borders cannot have one added later.
  • expand_policy - how this widget should fit space, see ExpandPolicy.Policy.Rule.
Overrides: _EGWidget.__init__

__setup_gui__(self)

source code 

__add_widgets_to_app__(self)

source code 

set_label(self, label)

source code 

get_label(self)

source code 

set_border(self, border)

source code 

get_border(self)

source code 

Class Variable Details [hide private]

children

Value:
_gen_ro_property("children")                                           
      

horizontal

Value:
_gen_ro_property("horizontal")                                         
      

BORDER_NONE

Value:
gtk.SHADOW_NONE                                                        
      

BORDER_IN

Value:
gtk.SHADOW_IN                                                          
      

BORDER_OUT

Value:
gtk.SHADOW_OUT                                                         
      

BORDER_ETCHED_IN

Value:
gtk.SHADOW_ETCHED_IN                                                   
      

BORDER_ETCHED_OUT

Value:
gtk.SHADOW_ETCHED_OUT                                                  
      

app

Value:
property(_get_app,_set_app)                                            
      

label

Value:
property(get_label,set_label)                                          
      

border

Value:
property(get_border,set_border)