AI/Unit 2/testing.py
2020-12-15 03:02:42 -05:00

14 lines
345 B
Python

from tkinter import *
from graphics import *
def main():
frame = GraphWin('Map', 300, 200) # pop-up window
frame.setCoords(0, 0, 299, 199) # 300 by 200
shape = Polygon([Point(50, 100), Point(100, 150), Point(150, 100)]) # Triangle
shape.setFill("red")
shape.setOutline("black")
shape.draw(frame)
mainloop()
main()