Closed alibaltschun closed 4 years ago
i found the main problem, its not a bug. but the audio interupted coz all code in that method already executed and the method done before mixer play di audio
file_B.py
from .file_A import play
import pyscreenshot as ImageGrab
import time
def main():
play("x1","y") // its working here, but
left = ImageGrab.grab(bbox=(1,2,3,4)) // after grab
play("x2","y") // log printed that method called but sound not working
time.sleep(n) // wait the audio play
I have some work with PyGame for play mp3. but I can't play the mp3 after grab screen
file_A.py
file_B.py
python 3.7.4
pygame 1.9.6
pyscreenshot 1.0.0