###############################################################################
# ---------------- 15-112 Recitation #7: Graphics ---------------- #

# This is a starter file of the problems we did in recitation. A good way to
# use this file is to try to re-write problems you saw in recitation from
# scratch. This way, you can test your understanding and ask on Piazza or
# office hours if you have questions :)

# --------------------------------------------------------------------------- #
from tkinter import *

###############################################################################
# Draw Fancy Wheel
###############################################################################
# LEARNING OBJECTIVES
# How do we use graphics functions in tkinter?
# How do we use trigonometry with graphics?
# How do we draw a shape inscribed in a circle?


def drawOneFancyWheel(canvas, numpoints, width, height):
	pass

###############################################################################
# Draw American Flag
###############################################################################
# LEARNING OBJECTIVES
# How do we use graphics functions?
# How do we draw a recognizable picture with tkinter?
# How do we handle repeating shapes in a pattern?


def drawAmericanFlag(canvas, width, height):
	pass

###############################################################################
# Draw Clock
###############################################################################
# LEARNING OBJECTIVES
# How do we find points relative to each other? 


def drawClock(canvas, width, height):
	pass


###############################################################################
# Run Drawings
###############################################################################
def runWheelDrawing(numpoints, width=300, height=300):
    root = Tk()
    root.resizable(width=False, height=False) # prevents resizing window
    canvas = Canvas(root, width=width, height=height)
    canvas.configure(bd=0, highlightthickness=0)
    canvas.pack()
    drawFancyWheel(canvas, numpoints, width, height)
    root.mainloop()
    print("bye!")


def runFlagDrawing(width=300, height=300):
    root = Tk()
    root.resizable(width=False, height=False) # prevents resizing window
    canvas = Canvas(root, width=width, height=height)
    canvas.configure(bd=0, highlightthickness=0)
    canvas.pack()
    drawAmericanFlag(canvas, width, height)
    root.mainloop()
    print("bye!")

def runClockDrawing(width=300, height=300):
    root = Tk()
    root.resizable(width=False, height=False) # prevents resizing window
    canvas = Canvas(root, width=width, height=height)
    canvas.configure(bd=0, highlightthickness=0)
    canvas.pack()
    drawClock(canvas, width, height)
    root.mainloop()
    print("bye!")

# runWheelDrawing("fill in number of points here", 400, 400)

# runFlagDrawing(700, 400)

# runClockDrawing(600, 600)