Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- paused = False
- def pause():
- global paused
- if paused:
- pygame.mixer.music.unpause()
- paused = False
- else:
- pygame.mixer.music.pause()
- paused = True
- pause_btn = Button(controls_frame, image=pause_btn_img, borderwidth=0, command=pause)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement