SCREENSHOT
CODE
#Draw a red circle centered at point (100,100) with radius 50 and with text Red Circle
from graphics import *
def main():
win = GraphWin('Draw Circle',300,300)
center = Point(100,100)
circ = Circle(center, 50)
circ.setFill('red')
circ.draw(win)
label = Text(center, "Red Circle")
label.draw(win)
main()
No comments:
Post a Comment