Commit cba417f8 by BellCodeEditor

auto save

parent 25aac90c
Showing with 4 additions and 5 deletions
...@@ -12,7 +12,7 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮 ...@@ -12,7 +12,7 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮 last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 下一曲按钮
n_q=pygame.font.Font('neuropol.ttf') n_q=pygame.font.Font('neuropol.ttf',14)
music_list = [] music_list = []
path = "C:\\Users\\CDLX\\Desktop\\text" path = "C:\\Users\\CDLX\\Desktop\\text"
filelist = os.listdir(path) filelist = os.listdir(path)
...@@ -81,7 +81,6 @@ while True: ...@@ -81,7 +81,6 @@ while True:
playm=playtime//60 playm=playtime//60
plays=playtime%60 plays=playtime%60
a=str(playm)+':'+str(plays) a=str(playm)+':'+str(plays)
pygame.
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 1
if num > len(music_list)-1: if num > len(music_list)-1:
...@@ -96,6 +95,6 @@ while True: ...@@ -96,6 +95,6 @@ while True:
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
s=n_q.render(a,True,(255,255,255)) s=n_q.render(a,True,(255,255,255))
screen.blit(s,()) screen.blit(s,(120,440))
# 刷新画面 # 刷新画面
pygame.display.update(120,440) pygame.display.update()
\ No newline at end of file \ 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