Commit 85f2f20b by BellCodeEditor

save project

parent 3ce2e0c5
Showing with 8 additions and 2 deletions
......@@ -12,6 +12,7 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
my_font = pygame.font.Font('neuropol.ttf', 18)
music_list = []
......@@ -27,7 +28,7 @@ click = 0
play_button = stop_img
a=0
ab=pygame.transform.rotate(logo_img,a)
a1,a2=0
a1,a2=0,0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -80,14 +81,17 @@ while True:
click += 2
else:
click += 1
p=pygame.mixer.music.get_pos()
p=pygame.mixer.music.get_pos()
p=int(p/1000)
pm=p//60
ps=p%60
pms=str(pm)+':'+str(ps)
print(pms)
if pygame.mixer.music.get_busy() == False:
num += 1
if num > len(music_list)-1:
......@@ -107,3 +111,4 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment