Commit eaf69866 by BellCodeEditor

save project

parent 0edaa277
Showing with 8 additions and 0 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') # 下一曲按钮
basic_fontd=pygame.font.Font('neuropol.ttf',14)
music_list = []
path = "C:\\Users\\Administrator\\Desktop\\123"
......@@ -59,6 +60,13 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
a=pygame.mixer.music.get_pos()
b=a//1000
m=b//60
s=b%60
info=str(m)+":"+str(s)
screenSurf=basic_font.render(info,True,(255,255,255))
screen.blit(screenSurf,(120,440))
play_button = stop_img
if click % 2 == 0:
click += 2
......
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