def rect(self, x, y, width, height, roundness=<NUM_LIT:0.0>, draw=True, **kwargs):
path = self.BezierPath(**kwargs)<EOL>path.rect(x, y, width, height, roundness, self.rectmode)<EOL>if draw:<EOL><INDENT>path.draw()<EOL><DEDENT>return path<EOL>
Draws a rectangle with top left corner at (x,y)

        The roundness variable sets rounded corners.