From da320adb80169189ecdd2fa9bc2f163cd2363893 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 24 Sep 2021 14:56:39 +0800 Subject: [PATCH] save project --- my_music.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/my_music.py b/my_music.py index 4f2db87..9c45c64 100644 --- a/my_music.py +++ b/my_music.py @@ -3,5 +3,23 @@ from pygame import locals pygame.init() screen=pygame.display.set_mode((640,480)) -bg_img +bg_img=pygame.image.load('background.png') +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') + +while True: + for event in pygame.event.get(): + if event.type == locals.QUIT: + exit() + screen.blit(bg_img,(0,0)) + screen.blit(play_img,(270,330)) + screen.blit(stop_img,(170,60)) + screen.blit(last_img,(120,350)) + screen.blit(next_img,(420,350)) + pygame.display.update() + + -- libgit2 0.25.0