1 import pygame
.mixer
, time
10 return pygame
.mixer
.music
.get_busy()
12 def play(self
, name
=None):
15 pygame
.mixer
.music
.unpause()
20 pygame
.mixer
.music
.load(name
)
24 pygame
.mixer
.music
.play()
33 pygame
.mixer
.music
.pause()
37 def time(self
, what
=0):
39 secs
= int(pygame
.mixer
.music
.get_pos()/1000)
40 tim
= time
.localtime(secs
)
47 return min + ':' + sec
53 pygame
.mixer
.music
.stop()