def draw(self):
        """Draws the dragger at the current mouse location.

        Should be called in every frame.

        """
        if not self.visible:
            return

        if self.isEnabled:
        
            # Draw the dragger's current appearance to the window.
            if self.dragging:
                self.window.blit(self.surfaceDown, self.rect)
            else:  # mouse is up
                if self.mouseOver:
                    self.window.blit(self.surfaceOver, self.rect)
                else:
                    self.window.blit(self.surfaceUp, self.rect)
        else:
            self.window.blit(self.surfaceDisabled, self.rect)
def draw ( self ) : if not self . visible : return if self . isEnabled : if self . dragging : self . window . blit ( self . surfaceDown , self . rect ) else : if self . mouseOver : self . window . blit ( self . surfaceOver , self . rect ) else : self . window . blit ( self . surfaceUp , self . rect ) else : self . window . blit ( self . surfaceDisabled , self . rect )
Draws the dragger at the current mouse location.

        Should be called in every frame.