parameters: (self)
docstring: Internal method used to adjust the :class:`PyScrolledWindow` scrollbars.
docstring_summary: Internal method used to adjust the :class:`PyScrolledWindow` scrollbars.
docstring_tokens: Internal method used to adjust the : class : PyScrolledWindow scrollbars .
function: def AdjustMyScrollbars(self):
          """ Internal method used to adjust the :class:`PyScrolledWindow` scrollbars. """
  
          if self._anchor:
              xUnit, yUnit = self.GetScrollPixelsPerUnit()
              if xUnit == 0:
                  xUnit = self.GetCharWidth()
              if yUnit == 0:
                  yUnit = self._lineHeight
  
              x, y = self._anchor.GetSize(0, 0, self)
              y += yUnit + 2 # one more scrollbar unit + 2 pixels
              x_pos = self.GetScrollPos(wx.HORIZONTAL)
              y_pos = self.GetScrollPos(wx.VERTICAL)
              x = self._owner.GetHeaderWindow().GetWidth() + 2
              if x < self.GetClientSize().GetWidth():
                  x_pos = 0
  
              self.SetScrollbars(xUnit, yUnit, x/xUnit, y/yUnit, x_pos, y_pos)
          else:
              self.SetScrollbars(0, 0, 0, 0)
function_tokens: def AdjustMyScrollbars ( self ) : if self . _anchor : xUnit , yUnit = self . GetScrollPixelsPerUnit ( ) if xUnit == 0 : xUnit = self . GetCharWidth ( ) if yUnit == 0 : yUnit = self . _lineHeight x , y = self . _anchor . GetSize ( 0 , 0 , self ) y += yUnit + 2 # one more scrollbar unit + 2 pixels x_pos = self . GetScrollPos ( wx . HORIZONTAL ) y_pos = self . GetScrollPos ( wx . VERTICAL ) x = self . _owner . GetHeaderWindow ( ) . GetWidth ( ) + 2 if x < self . GetClientSize ( ) . GetWidth ( ) : x_pos = 0 self . SetScrollbars ( xUnit , yUnit , x / xUnit , y / yUnit , x_pos , y_pos ) else : self . SetScrollbars ( 0 , 0 , 0 , 0 )