Caught exception: File "C:/Users/ \Audio_Controls.py", line 25, in <lambda> keys.append(('l', lambda: anki.sound.mpvManager.command('keypress', 'L'))) <class 'AttributeError'>: 'NoneType' object has no attribute 'command'
これは5を押した場合です。 Caught exception: File "C:/Users/ \Audio_Controls.py", line 21, in <lambda> keys.append(("5", lambda: writeAndFlush(b"pause"))) File "C:/Users/ \Audio_Controls.py", line 8, in writeAndFlush mm.togglePause() <class 'AttributeError'>: 'NoneType' object has no attribute 'togglePause'