Commit 323bc0fc by BellCodeEditor

auto save

parent 91b45dea
Showing with 5 additions and 2 deletions
......@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
music_list = []
path = "C:\\Users\\86178\\Desktop\\test"
path = "C:\\Users\\86158\\Desktop\\test"
filelist = os.listdir(path)
num = -1
angle = 0
......@@ -90,7 +90,10 @@ while True:
play_m = play_time//60
play_s = play_time%60
info = str(play_m) + ':' + str(play_s)
if play_s < 10:
info = str(play_m) + ':' +'0'+ str(play_s)
else:
info = str(play_m) + ':' + str(play_s)
new_logo = pygame.transform.rotate(logo_img,angle)
newRect = new_logo.get_rect(center=(320,220))
......
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