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

Type Group

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.
Method Summary
  __init__(self, id, label, children, horizontal, border, expand_policy, scrollbars, active, visible)
Group constructor.
  __add_widgets_to_app__(self)
  __setup_gui__(self)
  get_border(self)
  get_label(self)
  set_border(self, border)
  set_label(self, label)
  _get_app(self)
  _set_app(self, value)
    Inherited from _EGWidget
  __configure_orientation__(self, setting)
  __get_widgets__(self)
Return a list of internal widgets this Eagle widget contains.
  _get_widgets(self)
  _set_widgets(self, value)
  disable(self)
Same as set_active( False )
  enable(self, active)
Set the widget as active.
  focus(self)
Give keyboard focus to this widget.
  get_active(self)
Return True if it's active (enabled) or False inactive (disabled).
  get_visible(self)
Return true if widget is visible (shown).
  hide(self)
Make widget invisible.
  is_active(self)
Return True if it's active (enabled) or False inactive (disabled).
  is_enabled(self)
Return True if it's active (enabled) or False inactive (disabled).
  is_visible(self)
Return true if widget is visible (shown).
  set_active(self, active)
Set the widget as active.
  set_inactive(self)
Same as set_active( False )
  set_visible(self, visible)
Show or hide widget based on value of 'visible'.
  show(self)
Make widget visible.
    Inherited from _EGObject
  __repr__(self)
  __str__(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
  app
  border
  children
  horizontal
  label
    Inherited from _EGWidget
  _widgets
  active
  visible
    Inherited from _EGObject
  id

Class Variable Summary
ShadowType BORDER_ETCHED_IN = <enum GTK_SHADOW_ETCHED_IN of type Gt...
ShadowType BORDER_ETCHED_OUT = <enum GTK_SHADOW_ETCHED_OUT of type ...
ShadowType BORDER_IN = <enum GTK_SHADOW_IN of type GtkShadowType>
ShadowType BORDER_NONE = <enum GTK_SHADOW_NONE of type GtkShadowTyp...
ShadowType BORDER_OUT = <enum GTK_SHADOW_OUT of type GtkShadowType>
    Inherited from _EGWidget
int ORIENTATION_HORIZONTAL = 1                                                                     
int ORIENTATION_VERTICAL = 0                                                                     

Method Details

__init__(self, id, label='', children=None, horizontal=False, border=<enum GTK_SHADOW_ETCHED_IN of type GtkShadowType>, expand_policy=None, scrollbars=False, active=True, visible=True)
(Constructor)

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:
eagle._EGWidget.__init__

Property Details

app

Get Method:
_get_app(self)
Set Method:
_set_app(self, value)

border

Get Method:
get_border(self)
Set Method:
set_border(self, border)

children

Get Method:
get(...)
Set Method:
set(...)

horizontal

Get Method:
get(...)
Set Method:
set(...)

label

Get Method:
get_label(self)
Set Method:
set_label(self, label)

Class Variable Details

BORDER_ETCHED_IN

Type:
ShadowType
Value:
<enum GTK_SHADOW_ETCHED_IN of type GtkShadowType>                      

BORDER_ETCHED_OUT

Type:
ShadowType
Value:
<enum GTK_SHADOW_ETCHED_OUT of type GtkShadowType>                     

BORDER_IN

Type:
ShadowType
Value:
<enum GTK_SHADOW_IN of type GtkShadowType>                             

BORDER_NONE

Type:
ShadowType
Value:
<enum GTK_SHADOW_NONE of type GtkShadowType>                           

BORDER_OUT

Type:
ShadowType
Value:
<enum GTK_SHADOW_OUT of type GtkShadowType>                            

Generated by Epydoc 2.1 on Sun Apr 22 21:30:28 2007 http://epydoc.sf.net