Commit 9f8bcdcf by BellCodeEditor

save project

parent 7bb88301
Showing with 6 additions and 3 deletions
...@@ -101,11 +101,13 @@ while True: ...@@ -101,11 +101,13 @@ while True:
abc = int(miaoshu/1000) abc = int(miaoshu/1000)
miao = abc%60 miao = abc%60
fen = abc//60 fen = abc//60
c_miao = c%60
c_fen = c//60
wenziwenzi = str(fen)+":"+str(miao) wenziwenzi = str(fen)+":"+str(miao)
wenzi = pygame.font.Font('neuropol.ttf',20) wenzi = pygame.font.Font('neuropol.ttf',20)
new_wenzi = wenzi.render(wenziwenzi,True,(255,255,255)) new_wenzi = wenzi.render(wenziwenzi,True,(255,255,255))
wenziwenzi2 = "/"+str(c) wenziwenzi2 = str(c_fen)+":"+str(c_miao)
new_wenzi2 = wenzi.render(wenziwenzi2,True,(255,255,255)) new_wenzi2 = wenzi.render("/ "+wenziwenzi2,True,(255,255,255))
new_logo = pygame.transform.rotate(logo_img,jiaodu) new_logo = pygame.transform.rotate(logo_img,jiaodu)
if play_button == stop_img: if play_button == stop_img:
...@@ -122,6 +124,6 @@ while True: ...@@ -122,6 +124,6 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(new_wenzi,(120,450)) screen.blit(new_wenzi,(120,450))
screen.blit(str(wenziwenzi2),(125,450)) screen.blit(new_wenzi2,(170,450))
# 刷新画面 # 刷新画面
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