I'm pretty new to python and coding in general. I'm trying to make an application for a game and I can't seem to destroy the frame I created.
from tkinter import *
class application:
def __init__(self,parent):
self.startContainer = Frame(parent)
self.startContainer.pack()
self.lbl = Label(startContainer,text="Please choose from the following: \nFaith Points (F) \nBanqueting Goods (B) \nEnter Honour (E) ")
self.lbl.pack()
self.btn1 = Button(startContainer,text="Votes",command=self.votes(startContainer)).pack()
self.btn2 = Button(startContainer,text="Gold Tithe",command=self.gold(startContainer)).pack()
def votes(parent,self):
parent.destroy()
def gold(parent,self):
pass
window = Tk()
app = application(window)
window.title("Tools")
window.geometry("425x375")
window.wm_iconbitmap("logo.ico")
window.resizable(width=False, height=False)
window.mainloop()