Commit 25aac90c by BellCodeEditor

save project

parent 87966f8d
Showing with 12 additions and 5 deletions
......@@ -12,9 +12,9 @@ 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') # 下一曲按钮
n_q=pygame.font.Font('neuropol.ttf')
music_list = []
path = "C:\\Users\\bellcode\\Desktop\\test"
path = "C:\\Users\\CDLX\\Desktop\\text"
filelist = os.listdir(path)
num = -1
for i in filelist:
......@@ -76,7 +76,12 @@ while True:
click += 2
else:
click += 1
playtime=pygame.mixer.music.get_pos()
playtime=playtime//1000
playm=playtime//60
plays=playtime%60
a=str(playm)+':'+str(plays)
pygame.
if pygame.mixer.music.get_busy() == False:
num += 1
if num > len(music_list)-1:
......@@ -90,5 +95,7 @@ while True:
screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
s=n_q.render(a,True,(255,255,255))
screen.blit(s,())
# 刷新画面
pygame.display.update()
\ No newline at end of file
pygame.display.update(120,440)
\ 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