mirror of
https://github.com/Rushilwiz/AI.git
synced 2025-04-09 22:10:17 -04:00
14 lines
345 B
Python
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() |