I am trying to link the function below to a button in my tkinter GUI, however I am having trouble, as the function doesn't execute on button press.
createFrame=tk.Frame(root)
def raiseFrame(frame):
frame.tkraise()
I've tried:
createButton=tk.Button(treeviewFrame,text="Create",font=buttonFont,bg='blue',fg='lightblue',command=raiseFrame(createFrame))
and:
createButton=tk.Button(treeviewFrame,text="Create",font=buttonFont,bg='blue',fg='lightblue',command=lambda createFrame:raiseFrame)