Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson6_diy4

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 9f8bcdcf authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 7bb88301
Hide whitespace changes
Inline Side-by-side
Showing with 6 additions and 3 deletions
  • my_music.py
my_music.py
View file @ 9f8bcdcf
......@@ -101,11 +101,13 @@ while True:
abc = int(miaoshu/1000)
miao = abc%60
fen = abc//60
c_miao = c%60
c_fen = c//60
wenziwenzi = str(fen)+":"+str(miao)
wenzi = pygame.font.Font('neuropol.ttf',20)
new_wenzi = wenzi.render(wenziwenzi,True,(255,255,255))
wenziwenzi2 = "/"+str(c)
new_wenzi2 = wenzi.render(wenziwenzi2,True,(255,255,255))
wenziwenzi2 = str(c_fen)+":"+str(c_miao)
new_wenzi2 = wenzi.render("/ "+wenziwenzi2,True,(255,255,255))
new_logo = pygame.transform.rotate(logo_img,jiaodu)
if play_button == stop_img:
......@@ -122,6 +124,6 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(new_wenzi,(120,450))
screen.blit(str(wenziwenzi2),(125,450))
screen.blit(new_wenzi2,(170,450))
# 刷新画面
pygame.display.update()
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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