Open purple-piggy opened 3 weeks ago
The first example under "Pushing Those Buttons" omits assigning the command to the vol_up Button.
The very next sentence is "The function volumeUp() is called whenever the vol_up button is clicked in the window."
which is only the case if you add the command parameter
vol_up = Button(root, text="+", command=volumeUp)
https://github.com/pythonguis/pythonguis/pull/170
In https://www.pythonguis.com/tutorials/create-buttons-in-tkinter/
The first example under "Pushing Those Buttons" omits assigning the command to the vol_up Button.
The very next sentence is "The function volumeUp() is called whenever the vol_up button is clicked in the window."
which is only the case if you add the command parameter
vol_up = Button(root, text="+", command=volumeUp)