Commit 6e260895 by BellCodeEditor

save project

parent b21706d7
Showing with 11 additions and 1 deletions
...@@ -13,6 +13,7 @@ last_img = pygame.image.load('last.png') # 上一曲按钮 ...@@ -13,6 +13,7 @@ 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.font.Font("neuropol.ttf",30)
music_list = [] music_list = []
path = "C:\\Users\Public\\Music\\Sample Music" path = "C:\\Users\Public\\Music\\Sample Music"
filelist = os.listdir(path) filelist = os.listdir(path)
...@@ -92,5 +93,13 @@ while True: ...@@ -92,5 +93,13 @@ while True:
screen.blit(new_logo, (new_rect[0],new_rect[1])) screen.blit(new_logo, (new_rect[0],new_rect[1]))
screen.blit(last_img, (120, 350)) screen.blit(last_img, (120, 350))
screen.blit(next_img, (420, 350)) screen.blit(next_img, (420, 350))
renct_time = pygame.mixer.music.get_pos()
renct_time = renct_time//1000
m = renct_time//60
s = renct_time%60
info = str(m)+":"+str(s)
text=my_font.render(info,True,(254,254,254))
screen.blit(text,(60,400))
pygame.display.update() pygame.display.update()
\ 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