Commit afc34ef9 by BellCodeEditor

auto save

parent d8d09fcd
Showing with 2 additions and 2 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') # 下一曲按钮
my_font = pygame.image.load('neuropol.ttf',18) my_font = pygame.font.Font('neuropol.ttf',18)
music_list = [] music_list = []
path = "C:\\Users\\Administrator\\Desktop\\text" path = "C:\\Users\\Administrator\\Desktop\\text"
filelist = os.listdir(path) filelist = os.listdir(path)
...@@ -94,7 +94,7 @@ while True: ...@@ -94,7 +94,7 @@ while True:
play_s=play_time%60 play_s=play_time%60
info=str(play_m)+":"+str(play_s) info=str(play_m)+":"+str(play_s)
text1=my_font.render(info,True,(0,0,0)) text1=my_font.render(info,True,(0,0,0))
screen.blit(text1,(540,10)) screen.blit(text1,(300,10))
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮 screen.blit(play_button, (270, 330)) # 暂停按钮
......
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