# File: ChapterGraphics/circle1.py """ Draws a green circle r=20 in a (winx x winy) Window Screen resolution: Winx = 800 x winy = 600 ( low ) Winx = 1280 x winy = 800 ( high) """ from graphics import * winxMAX, winyMAX = 1280, 720 # multiple assignments def main(): winx,winy = 10,10 # initialize with bad size for win # check if window size is not out of limits while (winx > winxMAX) or (winy > winyMAX) or (winy < 50) or (winx < 50): winx = int(input("Enter x window? ")) winy = int(input("Enter y window? ")) win = GraphWin("My Circle", winx, winy) c = Circle(Point(25,25), 20) c.setFill("magenta") # color for your circle c.draw(win) main()