Reputation: 31
How do I make a rectangle with Height and Width parameters, using the graphics package in python?
Rectangle(RecWidth,RecField);
Upvotes: 0
Views: 20243
Reputation: 8989
According to the docs
from graphics import *
win = GraphWin()
rect = Rectangle(Point(20, 10), Point(10, 20))
rect.draw(win)
Upvotes: 1