Commit 97101b6c by BellCodeEditor

auto save

parent 7f684756
Showing with 4 additions and 2 deletions
...@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮 ...@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 下一曲按钮
c=0 c=0
music_list = [] music_list = []
path = "C:\\Users\\5\\Desktop\\test" path = "C:\\Users\\5\\Desktop\\text"
filelist = os.listdir(path) filelist = os.listdir(path)
num = -1 num = -1
for i in filelist: for i in filelist:
...@@ -87,7 +87,9 @@ while True: ...@@ -87,7 +87,9 @@ while True:
e=n.get_rect(center=(320,200)) e=n.get_rect(center=(320,200))
pos=(e[0],e[1]) pos=(e[0],e[1])
c+=1
if play_button==stop_img:
c+=1
# 绘制画面 # 绘制画面
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