parameters: (self, dc, orient, rect)
docstring: Draws a sash gripper on a sash between two windows.
  
          :param `dc`: a :class:`DC` device context;
          :param integer `orient`: the sash orientation;
          :param Rect `rect`: the sash rectangle.
docstring_summary: Draws a sash gripper on a sash between two windows.
docstring_tokens: Draws a sash gripper on a sash between two windows .
function: def DrawSashGripper(self, dc, orient, rect):
          """
          Draws a sash gripper on a sash between two windows.
  
          :param `dc`: a :class:`DC` device context;
          :param integer `orient`: the sash orientation;
          :param Rect `rect`: the sash rectangle.
          """
  
          dc.SetBrush(self._gripper_brush)
  
          if orient == wx.HORIZONTAL:  # horizontal sash
  
              x = rect.x + int((1.0/4.0)*rect.width)
              xend = rect.x + int((3.0/4.0)*rect.width)
              y = rect.y + (rect.height/2) - 1
  
              while 1:
                  dc.SetPen(self._gripper_pen3)
                  dc.DrawRectangle(x, y, 2, 2)
                  dc.SetPen(self._gripper_pen2)
                  dc.DrawPoint(x+1, y+1)
                  x = x + 5
  
                  if x >= xend:
                      break
  
          else:
  
              y = rect.y + int((1.0/4.0)*rect.height)
              yend = rect.y + int((3.0/4.0)*rect.height)
              x = rect.x + (rect.width/2) - 1
  
              while 1:
                  dc.SetPen(self._gripper_pen3)
                  dc.DrawRectangle(x, y, 2, 2)
                  dc.SetPen(self._gripper_pen2)
                  dc.DrawPoint(x+1, y+1)
                  y = y + 5
  
                  if y >= yend:
                      break
function_tokens: def DrawSashGripper ( self , dc , orient , rect ) : dc . SetBrush ( self . _gripper_brush ) if orient == wx . HORIZONTAL : # horizontal sash x = rect . x + int ( ( 1.0 / 4.0 ) * rect . width ) xend = rect . x + int ( ( 3.0 / 4.0 ) * rect . width ) y = rect . y + ( rect . height / 2 ) - 1 while 1 : dc . SetPen ( self . _gripper_pen3 ) dc . DrawRectangle ( x , y , 2 , 2 ) dc . SetPen ( self . _gripper_pen2 ) dc . DrawPoint ( x + 1 , y + 1 ) x = x + 5 if x >= xend : break else : y = rect . y + int ( ( 1.0 / 4.0 ) * rect . height ) yend = rect . y + int ( ( 3.0 / 4.0 ) * rect . height ) x = rect . x + ( rect . width / 2 ) - 1 while 1 : dc . SetPen ( self . _gripper_pen3 ) dc . DrawRectangle ( x , y , 2 , 2 ) dc . SetPen ( self . _gripper_pen2 ) dc . DrawPoint ( x + 1 , y + 1 ) y = y + 5 if y >= yend : break