Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import pygame
- import sys
- if sys.hexversion <= 34014960:
- from Tkinter import *
- else:
- from tkinter import *
- file = 'alarm.mp3'
- root = Tk()
- pygame.init()
- pygame.mixer.init()
- pygame.mixer.music.load(file)
- pygame.mixer.music.play()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement