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

Type Tabs

object --+        
         |        
 _EGObject --+    
             |    
     _EGWidget --+
                 |
                Tabs


Present widgets in Tabs.

This is also known as TabControl, TabWidget, Notebook, etc in other toolkits.

Tabs are composed from Pages (Tabs.Page), which behave just like Groups and hold a list of widgets.

Pages can be accessed by their index number (integer) or label, using the dictionary syntax or Tabs.get_page() method.
Method Summary
  __init__(self, id, children, expand_policy, active, visible)
Tabs constructor.
  __add_widgets_to_app__(self)
  __focus_page__(self, page)
  __getitem__(self, index_or_id)
Same as Tabs.get_page().
  __setitem__(self, index_or_id, value)
Set Tabs.Page.label of a page get using 'index_or_id' for Tabs.get_page().
  __setup_gui__(self)
  focus_page(self, index_or_id_or_page)
Make given page visible.
  get_page(self, index_or_id)
Get the Tabs.Page given its index or id.
  _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
  children
    Inherited from _EGWidget
  _widgets
  active
  visible
    Inherited from _EGObject
  id

Class Variable Summary
type Page = eagle.Page
    Inherited from _EGWidget
int ORIENTATION_HORIZONTAL = 1                                                                     
int ORIENTATION_VERTICAL = 0                                                                     

Method Details

__init__(self, id, children=None, expand_policy=None, active=True, visible=True)
(Constructor)

Tabs constructor.
Parameters:
id - unique identified.
children - an iterable with Tabs.Page
expand_policy - how this widget should fit space, see ExpandPolicy.Policy.Rule.
Overrides:
eagle._EGWidget.__init__

__getitem__(self, index_or_id)
(Indexing operator)

Same as Tabs.get_page().

@raise KeyError see Tabs.get_page() @see Tabs.get_page()

__setitem__(self, index_or_id, value)
(Index assignment operator)

Set Tabs.Page.label of a page get using 'index_or_id' for Tabs.get_page().

@raise KeyError see Tabs.get_page() @see Tabs.get_page()

focus_page(self, index_or_id_or_page)

Make given page visible.

get_page(self, index_or_id)

Get the Tabs.Page given its index or id.

@raise KeyError if index_or_id doesn't exists.

Property Details

app

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

children

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

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