parameters: (self, dc, wnd, _rect, horizontal=True)
docstring: Draws a toolbar background with a gradient shading.
  
          :param `dc`: a :class:`DC` device context;
          :param `wnd`: a :class:`Window` derived window;
          :param Rect `_rect`: the :class:`AuiToolBarItem` rectangle;
          :param bool `horizontal`: ``True`` if the toolbar is horizontal, ``False`` if it is vertical.
docstring_summary: Draws a toolbar background with a gradient shading.
docstring_tokens: Draws a toolbar background with a gradient shading .
function: def DrawBackground(self, dc, wnd, _rect, horizontal=True):
          """
          Draws a toolbar background with a gradient shading.
  
          :param `dc`: a :class:`DC` device context;
          :param `wnd`: a :class:`Window` derived window;
          :param Rect `_rect`: the :class:`AuiToolBarItem` rectangle;
          :param bool `horizontal`: ``True`` if the toolbar is horizontal, ``False`` if it is vertical.
          """
  
          rect = wx.Rect(*_rect)
  
          start_colour = StepColour(self._base_colour, 180)
          end_colour = StepColour(self._base_colour, 85)
          reflex_colour = StepColour(self._base_colour, 95)
          
          dc.GradientFillLinear(rect, start_colour, end_colour,
                                (horizontal and [wx.SOUTH] or [wx.EAST])[0])
  
          left = rect.GetLeft()
          right = rect.GetRight()
          top = rect.GetTop()
          bottom = rect.GetBottom()
  
          dc.SetPen(wx.Pen(reflex_colour))
          if horizontal:
              dc.DrawLine(left, bottom, right+1, bottom)
          else:
              dc.DrawLine(right, top, right, bottom+1)
function_tokens: def DrawBackground ( self , dc , wnd , _rect , horizontal = True ) : rect = wx . Rect ( * _rect ) start_colour = StepColour ( self . _base_colour , 180 ) end_colour = StepColour ( self . _base_colour , 85 ) reflex_colour = StepColour ( self . _base_colour , 95 ) dc . GradientFillLinear ( rect , start_colour , end_colour , ( horizontal and [ wx . SOUTH ] or [ wx . EAST ] ) [ 0 ] ) left = rect . GetLeft ( ) right = rect . GetRight ( ) top = rect . GetTop ( ) bottom = rect . GetBottom ( ) dc . SetPen ( wx . Pen ( reflex_colour ) ) if horizontal : dc . DrawLine ( left , bottom , right + 1 , bottom ) else : dc . DrawLine ( right , top , right , bottom + 1 )