parameters: (self)
return_statement: return n
docstring: Returns the number of visible buttons in the docked pane.
docstring_summary: Returns the number of visible buttons in the docked pane.
docstring_tokens: Returns the number of visible buttons in the docked pane .
function: def CountButtons(self):
          """ Returns the number of visible buttons in the docked pane. """
  
          n = 0
  
          if self.HasCaption() or self.HasCaptionLeft():
              if isinstance(wx.GetTopLevelParent(self.window), AuiFloatingFrame):
                  return 1
  
              if self.HasCloseButton():
                  n += 1
              if self.HasMaximizeButton():
                  n += 1
              if self.HasMinimizeButton():
                  n += 1
              if self.HasPinButton():
                  n += 1
  
          return n
function_tokens: def CountButtons ( self ) : n = 0 if self . HasCaption ( ) or self . HasCaptionLeft ( ) : if isinstance ( wx . GetTopLevelParent ( self . window ) , AuiFloatingFrame ) : return 1 if self . HasCloseButton ( ) : n += 1 if self . HasMaximizeButton ( ) : n += 1 if self . HasMinimizeButton ( ) : n += 1 if self . HasPinButton ( ) : n += 1 return n