我正在尝试打开一个音乐曲目,并将其添加到Pyglet中的播放器队列中。当播放器尝试对曲目进行排队时,错误就出现了。下面的错误。Exception in Tkinter callback File "C:\Python33\lib\site-packages\lib\tkinter\__init__.py", line 1475, in __call__
return s
我正在尝试打开一个要传递给pyglet.media.load(variable containing file)的音乐文件。它返回错误:NameError: f is not definedfrom tkinter.filedialog import askopenfilenamewith the name of your open function
file.add_command(label='Exit', command=app.destroy) #