diff --git a/my_music.py b/my_music.py index 3793a43..b6776a8 100644 --- a/my_music.py +++ b/my_music.py @@ -39,7 +39,8 @@ while True: # 按下鼠标 if event.type == locals.MOUSEBUTTONDOWN: - # 次数增加 + if event.button == 1: + x,y = event.pos # 次数增加 click += 1 if click % 2 == 0: play_button = stop_img