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 def show(self): self.window.mainloop()