pythonguis / feedback

Corrections & suggestions for Python GUIs tutorials on pythonguis.com
1 stars 0 forks source link

Pushing Those Buttons - Example Missing parameter #27

Open purple-piggy opened 3 weeks ago

purple-piggy commented 3 weeks ago

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)

lpozo commented 1 day ago

https://github.com/pythonguis/pythonguis/pull/170