How do I reference a function that is within the class as a command for a menu button? How do I reference a function that is within the class as a command for a menu button? tkinter tkinter

How do I reference a function that is within the class as a command for a menu button?


vGuitarRender is a method within your class, so you need to use self.vGuitarRender instead.

menu.add_command(label = "Virtual Guitar", command = self.vGuitarRender)