import pygame import sys from tkinter import * def play() : pygame.mixer.music.load('metal-pipe-clang.mp3') pygame.mixer.music.play() def pause() : pygame.mixer.music.pause() def unpause() : pygame.mixer.music.unpause() while True : pygame.init() screen = pygame.display.set_mode((100, 100)) root = Tk() root.geometry('100x100') myframe = Frame(root) myframe.pack() mylabel = Label(myframe, text = "Balls") mylabel.pack() button1 = Button(myframe, text = "Play the game", command = play, width = 15) button1.pack(pady = 5)