Commit 69f01c2e by BellCodeEditor

save project

parent 3e56c891
Showing with 6 additions and 6 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') # 下一曲按钮
basic_font = pygame.font.Font("neuropol.ttf",25) basic_font = pygame.font.Font("neuropol.ttf",15)
music_list = [] music_list = []
path = "C:\\Users\\Makcoo\\Desktop\\test" path = "C:\\Users\\Makcoo\\Desktop\\test"
filelist = os.listdir(path) filelist = os.listdir(path)
...@@ -103,8 +103,8 @@ while True: ...@@ -103,8 +103,8 @@ while True:
music_s = music_length%60 music_s = music_length%60
if music_s < 10: if music_s < 10:
music_s="0" + str(music_s) music_s="0" + str(music_s)
time = str(music_m) + ":" + str(music_s) time3 = str(music_m) + ":" + str(music_s)
print(time) print(time3)
new_logo = pygame.transform.rotate(logo_img,angle) new_logo = pygame.transform.rotate(logo_img,angle)
newRect = new_logo.get_rect(center=(320,200)) newRect = new_logo.get_rect(center=(320,200))
...@@ -119,10 +119,10 @@ while True: ...@@ -119,10 +119,10 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
scoreSurf = basic_font.render(info,True,(255,255,255)) scoreSurf = basic_font.render(info,True,(255,255,255))
screen.blit(scoreSurf,(120,440)) screen.blit(scoreSurf,(120,440))
scoreSurf2 = basic_font.render("/" +time2,True,(0,0,0)) scoreSurf2 = basic_font.render("/" +time3,True,(0,0,0))
screen.blit(scoreSurf2,(170,440)) screen.blit(scoreSurf2,(170,440))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
#15,67,68,69,81,82,83,90,91,92,102,103,104,105,106,107 #15,67,68,69,81,82,83,90,91,92,102,103,104,105,106,107,120,121,122,123
\ 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