Package wx :: Class Notebook
[frames | no frames]

Type Notebook

object --+                    
         |                    
    Object --+                
             |                
    EvtHandler --+            
                 |            
            Window --+        
                     |        
               Control --+    
                         |    
              BookCtrlBase --+
                             |
                            Notebook

Known Subclasses:
EditorNotebook, EditorShellNotebook

Proxy of C++ Notebook class
Method Summary
Notebook __init__(self, parent, id, pos, size, style, name)
  __repr__(self)
Size CalcSizeFromPage(self, sizePage)
bool Create(self, parent, id, pos, size, style, validator, name)
Do the 2nd phase and create the GUI control.
VisualAttributes GetClassDefaultAttributes(variant)
Get the default attributes for this class. (Static method)
int GetRowCount(self)
Colour GetThemeBackgroundColour(self)
(tab, where) HitTest(pt)
Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST flags.
  SetPadding(self, padding)
  SetTabSize(self, sz)

Instance Method Details

Create(self, parent, id=-1, pos=DefaultPosition, size=DefaultSize, style=0, name=NotebookNameStr)

Do the 2nd phase and create the GUI control.
Parameters:
parent
           (type=Window)
id
           (type=int)
pos
           (type=Point)
size
           (type=Size)
style
           (type=long)
validator
           (type=Validator)
name
           (type=String)
Returns:
bool
Overrides:
wx.Control.Create (inherited documentation)

HitTest(pt)

Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST flags.
Parameters:
pt
           (type=Point)
Returns:
(tab, where)
Overrides:
wx.Window.HitTest

Static Method Details

GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)

Get the default attributes for this class. This is useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the user's system, especially if it uses themes.

The variant parameter is only relevant under Mac currently and is ignore under other platforms. Under Mac, it will change the size of the returned font. See wx.Window.SetWindowVariant for more about this.

Parameters:
variant
           (type=int)
Returns:
VisualAttributes

Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:24:54 2005 http://epydoc.sf.net