Files
terrain_generator/window.py
T

17 lines
381 B
Python

import tkinter
class Window:
def __init__(self, width, height, title = "Terrain Generator"):
self.window = tkinter.Tk()
self.window.title(title)
self.canvas = tkinter.Canvas(self.window, width = width, height = height)
self.canvas.pack()
self.width = width
self.height = height
self.theta = 1
self.triangles = []
def show(self):
self.window.mainloop()