I have this following menu created in Tkinter
subMenu = Menu(Selection)
Selection.add_cascade(label = "Maze Generation Algorithms", menu = subMenu)
subMenu.add_command(label = "Recursive Back Tracking", command = FindNext(Stack[0], Stack, canvas, root))
The problem is when I start up my program, the FindNext function will automatically run without the menu button being pressed yet. How would I fix this?