SCREENSHOT
CODE
#Draw a square using a Rectangle object
from graphics import *
def main():
win = GraphWin('Draw Square',300,300)
center = Point(100,100)
rect = Rectangle(Point(30,30), Point(150,150))
rect.setFill("yellow")
rect.draw(win)
main()
getsprogramming Tutorials , C Programming, CPP Programming and JAVA Programming , Python Programming , Javascript Programming Welcome to getsprogramming Blog Here You Find Different Programs in Easier way to Explain and gain Knowledge and Try Your Self..Thanks
SCREENSHOT
CODE
#Draw a square using a Rectangle object
from graphics import *
def main():
win = GraphWin('Draw Square',300,300)
center = Point(100,100)
rect = Rectangle(Point(30,30), Point(150,150))
rect.setFill("yellow")
rect.draw(win)
main()