My goal is to play mp3 files with pyglet on the Windows terminal, no
video/opengl required. Unfortunately, when importing Player from pyglet.media,
the console window loses focus.
Sample code:
#!/usr/bin/env python
import time
if __name__ == '__main__':
from pyglet.media import Player
# just to avoid closing immediately, otherwise we can't notice the issue:
while True:
time.sleep(0.1)
After starting the program I need to click on the console window to regain
focus and be able to press control+c. The same happens if I try to import other
modules such as avbin.
Windows 7 x86-64, Python 3.3.3, pyglet (1.2alpha1)
Original issue reported on code.google.com by bel...@gmx.com on 24 Feb 2014 at 7:00
Original issue reported on code.google.com by
bel...@gmx.com
on 24 Feb 2014 at 7:00