import pygame, sys from tkinter import * def play(): pygame.mixer.music.load("game.music.mp3") pygame.mixer.music.play() def pause(): pygame.mixer.music.pause() def unpause(): pygame.mixer.music.unpause() def sound(): pygame.mixer.music.Sound.play(sound_effect) pygame.init() displaysurface = pygame.display.set_mode((400,400)) pygame.display.set_caption("Music") sound_effect = pygame.mixer.Sound("casino-bling.wav") while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()