Logo Search packages:      
Sourcecode: whyteboard version File versions  Download package

def whyteboard::lib::flatnotebook::FlatNotebook::__init__ (   self,
  parent,
  id = wx.ID_ANY,
  pos = wx.DefaultPosition,
  size = wx.DefaultSize,
  style = 0,
  agwStyle = 0,
  name = "FlatNotebook" 
)
Default class constructor.

:param `parent`: the L{FlatNotebook} parent;
:param `id`: an identifier for the control: a value of -1 is taken to mean a default;
:param `pos`: the control position. A value of (-1, -1) indicates a default position,
 chosen by either the windowing system or wxPython, depending on platform;
:param `size`: the control size. A value of (-1, -1) indicates a default size,
 chosen by either the windowing system or wxPython, depending on platform;
:param `style`: the underlying `wx.PyPanel` window style;
:param `agwStyle`: the AGW-specific window style. This can be a combination of the
 following bits:

 ================================ =========== ==================================================
 Window Styles                    Hex Value   Description
 ================================ =========== ==================================================
 ``FNB_VC71``                             0x1 Use Visual Studio 2003 (VC7.1) style for tabs.
 ``FNB_FANCY_TABS``                       0x2 Use fancy style - square tabs filled with gradient colouring.
 ``FNB_TABS_BORDER_SIMPLE``               0x4 Draw thin border around the page.
 ``FNB_NO_X_BUTTON``                      0x8 Do not display the 'X' button.
 ``FNB_NO_NAV_BUTTONS``                  0x10 Do not display the right/left arrows.
 ``FNB_MOUSE_MIDDLE_CLOSES_TABS``        0x20 Use the mouse middle button for cloing tabs.
 ``FNB_BOTTOM``                          0x40 Place tabs at bottom - the default is to place them at top.
 ``FNB_NODRAG``                          0x80 Disable dragging of tabs.
 ``FNB_VC8``                            0x100 Use Visual Studio 2005 (VC8) style for tabs.
 ``FNB_X_ON_TAB``                       0x200 Place 'X' close button on the active tab.
 ``FNB_BACKGROUND_GRADIENT``            0x400 Use gradients to paint the tabs background.
 ``FNB_COLOURFUL_TABS``                 0x800 Use colourful tabs (VC8 style only).
 ``FNB_DCLICK_CLOSES_TABS``            0x1000 Style to close tab using double click.
 ``FNB_SMART_TABS``                    0x2000 Use `Smart Tabbing`, like ``Alt`` + ``Tab`` on Windows.
 ``FNB_DROPDOWN_TABS_LIST``            0x4000 Use a dropdown menu on the left in place of the arrows.
 ``FNB_ALLOW_FOREIGN_DND``             0x8000 Allows drag 'n' drop operations between different FlatNotebooks.
 ``FNB_HIDE_ON_SINGLE_TAB``           0x10000 Hides the Page Container when there is one or fewer tabs.
 ``FNB_DEFAULT_STYLE``                0x10020 FlatNotebook default style.
 ``FNB_FF2``                          0x20000 Use Firefox 2 style for tabs.
 ``FNB_NO_TAB_FOCUS``                 0x40000 Does not allow tabs to have focus.
 ``FNB_RIBBON_TABS``                  0x80000 Use the Ribbon Tabs style.
 ================================ =========== ==================================================

:param `name`: the window name.

Reimplemented in whyteboard::lib::flatnotebook::FlatNotebookCompatible.

Definition at line 3760 of file flatnotebook.py.

                                                          :
        """
        Default class constructor.

        :param `parent`: the L{FlatNotebook} parent;
        :param `id`: an identifier for the control: a value of -1 is taken to mean a default;
        :param `pos`: the control position. A value of (-1, -1) indicates a default position,
         chosen by either the windowing system or wxPython, depending on platform;
        :param `size`: the control size. A value of (-1, -1) indicates a default size,
         chosen by either the windowing system or wxPython, depending on platform;
        :param `style`: the underlying `wx.PyPanel` window style;
        :param `agwStyle`: the AGW-specific window style. This can be a combination of the
         following bits:

         ================================ =========== ==================================================
         Window Styles                    Hex Value   Description
         ================================ =========== ==================================================
         ``FNB_VC71``                             0x1 Use Visual Studio 2003 (VC7.1) style for tabs.
         ``FNB_FANCY_TABS``                       0x2 Use fancy style - square tabs filled with gradient colouring.
         ``FNB_TABS_BORDER_SIMPLE``               0x4 Draw thin border around the page.
         ``FNB_NO_X_BUTTON``                      0x8 Do not display the 'X' button.
         ``FNB_NO_NAV_BUTTONS``                  0x10 Do not display the right/left arrows.
         ``FNB_MOUSE_MIDDLE_CLOSES_TABS``        0x20 Use the mouse middle button for cloing tabs.
         ``FNB_BOTTOM``                          0x40 Place tabs at bottom - the default is to place them at top.
         ``FNB_NODRAG``                          0x80 Disable dragging of tabs.
         ``FNB_VC8``                            0x100 Use Visual Studio 2005 (VC8) style for tabs.
         ``FNB_X_ON_TAB``                       0x200 Place 'X' close button on the active tab.
         ``FNB_BACKGROUND_GRADIENT``            0x400 Use gradients to paint the tabs background.
         ``FNB_COLOURFUL_TABS``                 0x800 Use colourful tabs (VC8 style only).
         ``FNB_DCLICK_CLOSES_TABS``            0x1000 Style to close tab using double click.
         ``FNB_SMART_TABS``                    0x2000 Use `Smart Tabbing`, like ``Alt`` + ``Tab`` on Windows.
         ``FNB_DROPDOWN_TABS_LIST``            0x4000 Use a dropdown menu on the left in place of the arrows.
         ``FNB_ALLOW_FOREIGN_DND``             0x8000 Allows drag 'n' drop operations between different FlatNotebooks.
         ``FNB_HIDE_ON_SINGLE_TAB``           0x10000 Hides the Page Container when there is one or fewer tabs.
         ``FNB_DEFAULT_STYLE``                0x10020 FlatNotebook default style.
         ``FNB_FF2``                          0x20000 Use Firefox 2 style for tabs.
         ``FNB_NO_TAB_FOCUS``                 0x40000 Does not allow tabs to have focus.
         ``FNB_RIBBON_TABS``                  0x80000 Use the Ribbon Tabs style.
         ================================ =========== ==================================================

        :param `name`: the window name.
        """

        self._bForceSelection = False
        self._nPadding = 6
        self._nFrom = 0
        style |= wx.TAB_TRAVERSAL
        self._pages = None
        self._windows = []
        self._popupWin = None
        self._naviIcon = None
        self._agwStyle = agwStyle

        wx.PyPanel.__init__(self, parent, id, pos, size, style)

        self._pages = PageContainer(self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, style)

        self.Bind(wx.EVT_NAVIGATION_KEY, self.OnNavigationKey)

        self.Init()



Generated by  Doxygen 1.6.0   Back to index