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

Administrator / pygame_lesson6_diy2

  • 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 b19abdab authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 17b8d3f3
Show whitespace changes
Inline Side-by-side
Showing with 8 additions and 1 deletions
  • my_music.py
my_music.py
View file @ b19abdab
......@@ -12,7 +12,8 @@ play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.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',14)
music_list = []
path = "C:\\Users\\Administrator\\Desktop\\test"
......@@ -92,8 +93,14 @@ while True:
play_m = play_time//60 #分
paly_s = play_time%60 #秒
if play_s < 10:
play_s = "0"+str(paly_s)
info = str(paly_m)+":"+str(play_s)
music_m = musicmusic_length//60
music_s = musicmusic_length&60
info2 = str(music_m)+":"+str(music_s)
new_logo = pygame.transform.rotate(logo_img,angle)
newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1])
......
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