PythonでGUIコードを実行しているときにエラーが発生しています。私はマックを使用しています。 他のコンピュータでも同じコードが完全に実行されます。Python、Tkinter、AppJarのGUI
この基本的な関数呼び出しは私にこのエラーを与えます。誰かが助けてくれますか?
>>> from appJar import gui
>>> app = gui()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/appJar/appjar.py", line 410, in __init__
self.exe_file = os.path.basename(theMain.__file__)
AttributeError: module '__main__' has no attribute '__file__'
対話型のプロンプトでこれを入力していますか?このコードをファイルに入れ、 'python the_file.py'のように実行するとどうなりますか? –