parameters: (self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition,
                   size=wx.DefaultSize, style=0)
docstring: Default class constructor.
docstring_summary: Default class constructor.
docstring_tokens: Default class constructor .
function: def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition,
                   size=wx.DefaultSize, style=0):
          """ Default class constructor. """
          
          self._ImageList = None
          self._iActivePage = -1
          self._pDropTarget = None
          self._nLeftClickZone = FNB_NOWHERE
          self._iPreviousActivePage = -1
  
          self._pRightClickMenu = None
          self._nXButtonStatus = FNB_BTN_NONE
          self._nArrowDownButtonStatus = FNB_BTN_NONE
          self._pParent = parent
          self._nRightButtonStatus = FNB_BTN_NONE
          self._nLeftButtonStatus = FNB_BTN_NONE
          self._nTabXButtonStatus = FNB_BTN_NONE
  
          self._setCursor = False
  
          self._pagesInfoVec = []        
  
          self._colorTo = wx.SystemSettings_GetColour(wx.SYS_COLOUR_ACTIVECAPTION)
          self._colorFrom = wx.WHITE
          self._activeTabColor = wx.WHITE
          self._activeTextColor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_BTNTEXT)
          self._nonActiveTextColor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_BTNTEXT)
          self._tabAreaColor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_BTNFACE)
  
          self._nFrom = 0
          self._isdragging = False
  
          # Set default page height, this is done according to the system font
          memDc = wx.MemoryDC()
          memDc.SelectObject(wx.EmptyBitmap(1,1))
      
  #        if "__WXGTK__" in wx.PlatformInfo:
  #            boldFont = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT)
  #            boldFont.SetWeight(wx.BOLD)
  #            memDc.SetFont(boldFont)
  
          height = memDc.GetCharHeight()
          tabHeight = height + FNB_HEIGHT_SPACER # We use 10 pixels as padding
  
          wx.Panel.__init__(self, parent, id, pos, wx.Size(size.x, tabHeight),
                            style|wx.NO_BORDER|wx.NO_FULL_REPAINT_ON_RESIZE|wx.WANTS_CHARS)
  
          self._pDropTarget = FNBDropTarget(self)
          self.SetDropTarget(self._pDropTarget)
          self._mgr = FNBRendererMgr()
  
          self.Bind(wx.EVT_PAINT, self.OnPaint)
          self.Bind(wx.EVT_SIZE, self.OnSize)
          self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
          self.Bind(wx.EVT_LEFT_UP, self.OnLeftUp)
          self.Bind(wx.EVT_RIGHT_DOWN, self.OnRightDown)
          self.Bind(wx.EVT_MIDDLE_DOWN, self.OnMiddleDown)
          self.Bind(wx.EVT_MOUSEWHEEL, self.OnMouseWheel)
          self.Bind(wx.EVT_MOTION, self.OnMouseMove)
          self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
          self.Bind(wx.EVT_LEAVE_WINDOW, self.OnMouseLeave)
          self.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnterWindow)
          self.Bind(wx.EVT_LEFT_DCLICK, self.OnLeftDClick)
          self.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
          self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
          self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown)
function_tokens: def __init__ ( self , parent , id = wx . ID_ANY , pos = wx . DefaultPosition , size = wx . DefaultSize , style = 0 ) : self . _ImageList = None self . _iActivePage = - 1 self . _pDropTarget = None self . _nLeftClickZone = FNB_NOWHERE self . _iPreviousActivePage = - 1 self . _pRightClickMenu = None self . _nXButtonStatus = FNB_BTN_NONE self . _nArrowDownButtonStatus = FNB_BTN_NONE self . _pParent = parent self . _nRightButtonStatus = FNB_BTN_NONE self . _nLeftButtonStatus = FNB_BTN_NONE self . _nTabXButtonStatus = FNB_BTN_NONE self . _setCursor = False self . _pagesInfoVec = [ ] self . _colorTo = wx . SystemSettings_GetColour ( wx . SYS_COLOUR_ACTIVECAPTION ) self . _colorFrom = wx . WHITE self . _activeTabColor = wx . WHITE self . _activeTextColor = wx . SystemSettings_GetColour ( wx . SYS_COLOUR_BTNTEXT ) self . _nonActiveTextColor = wx . SystemSettings_GetColour ( wx . SYS_COLOUR_BTNTEXT ) self . _tabAreaColor = wx . SystemSettings_GetColour ( wx . SYS_COLOUR_BTNFACE ) self . _nFrom = 0 self . _isdragging = False # Set default page height, this is done according to the system font memDc = wx . MemoryDC ( ) memDc . SelectObject ( wx . EmptyBitmap ( 1 , 1 ) ) #        if "__WXGTK__" in wx.PlatformInfo: #            boldFont = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT) #            boldFont.SetWeight(wx.BOLD) #            memDc.SetFont(boldFont) height = memDc . GetCharHeight ( ) tabHeight = height + FNB_HEIGHT_SPACER # We use 10 pixels as padding wx . Panel . __init__ ( self , parent , id , pos , wx . Size ( size . x , tabHeight ) , style | wx . NO_BORDER | wx . NO_FULL_REPAINT_ON_RESIZE | wx . WANTS_CHARS ) self . _pDropTarget = FNBDropTarget ( self ) self . SetDropTarget ( self . _pDropTarget ) self . _mgr = FNBRendererMgr ( ) self . Bind ( wx . EVT_PAINT , self . OnPaint ) self . Bind ( wx . EVT_SIZE , self . OnSize ) self . Bind ( wx . EVT_LEFT_DOWN , self . OnLeftDown ) self . Bind ( wx . EVT_LEFT_UP , self . OnLeftUp ) self . Bind ( wx . EVT_RIGHT_DOWN , self . OnRightDown ) self . Bind ( wx . EVT_MIDDLE_DOWN , self . OnMiddleDown ) self . Bind ( wx . EVT_MOUSEWHEEL , self . OnMouseWheel ) self . Bind ( wx . EVT_MOTION , self . OnMouseMove ) self . Bind ( wx . EVT_ERASE_BACKGROUND , self . OnEraseBackground ) self . Bind ( wx . EVT_LEAVE_WINDOW , self . OnMouseLeave ) self . Bind ( wx . EVT_ENTER_WINDOW , self . OnMouseEnterWindow ) self . Bind ( wx . EVT_LEFT_DCLICK , self . OnLeftDClick ) self . Bind ( wx . EVT_SET_FOCUS , self . OnSetFocus ) self . Bind ( wx . EVT_KILL_FOCUS , self . OnKillFocus ) self . Bind ( wx . EVT_KEY_DOWN , self . OnKeyDown )