I have a menu that when clicked should run a function. There are no errors but when the user clicks on the menu it does not do anything.
After reading another stack overflow question I added in lamda functions to the command however it does the same thing both with and without the lambda. Python Tkinter Menu Command Not Working
menubar = Menu(self.master)
self.master.config(menu=menubar)
menubar.add_command(label = "Add Items", command= lambda: self.Add_Items)
menubar.add_command(label = "Make A Purchase", command= lambda: self.Transactions)
menubar.add_command(label = "Make A Return", command= lambda: self.Returns)
This is the menu
def Add_Items(self):
label = tk.Label(self, text="Add Items")
label.grid()
This is the function that it should run.
What am I missing?