Commit a2c49646 by BellCodeEditor

save project

parent 7adf5c97
Showing with 7 additions and 2 deletions
aimport pygame aimport pygame
from pygame import locals from pygame import locals
import os
pygame.init() # 初始化 pygame.init() # 初始化
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((640, 480)) screen = pygame.display.set_mode((640, 480))
...@@ -12,7 +12,12 @@ last_img = pygame.image.load('last.png') # 上一曲按钮 ...@@ -12,7 +12,12 @@ 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 logo_img = pygame.image.load('logo.png') # 中间logo
music.list['','','','']
path="C:\Users\EDZ\Desktop\test"
filelist =os.listdir(path)
for i in filelist:
if i[-4:]==".wav" or i[-4:]==".ogg":
music_list.append(i)
volume=0.2 volume=0.2
pygame.mixer.music.set_volume() pygame.mixer.music.set_volume()
if event.type==locals.MOUSEBUTTONDOWN: if event.type==locals.MOUSEBUTTONDOWN:
......
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