Python GUI with Tkinter - Toggle the Tkinter button + Mute the music with Pygame - 16/30

preview_player
Показать описание
Day 16 - In this video we learn how to change the image of a button ( photoimage ) in tkinter when the button is pressed. We also learn to mute the music using Pygame's mixer library.

#tkinter #python #tkinter30
Рекомендации по теме
Комментарии
Автор

Your energy is amazing. Loved this way of learning.

priyankapatil
Автор

With this you can unmute with the last scale value:


muted = FALSE

def mute_music():
global muted
global last_volume

if muted:


scale.set(last_volume)
muted= FALSE
else:
mixer.music.set_volume(0)

last_volume = scale.get()
print(last_volume)
scale.set(0)
muted = TRUE

mrem
Автор

of all great tutorial learning lotta stuff in no think I have discovered a bug in our code...I noticed...that when music is muted....when you try to slide the volume slider....the music starts it will be so nice of you if you found a way around that☺️

sudhabain
Автор

This series is amazing please would you like to tell me "from where you learn python?"

rajdave