我遇到了一些使用tkinter的問題。首先,我使用Python 2,並且我看到SO上的人使用了import tkinter
和import Tkinter
的混合;只有後者適用於我,雖然有另一個模塊名稱_tkinter
。我應該在哪裏使用?Tkinter無法找到filedialog?
真正的問題是tkinter找不到filedialog
。我正在嘗試執行path = Tkinter.filedialog.askopenfilename()
,但出現錯誤AttributeError: 'module' object has no attribute 'filedialog'
。我能做些什麼呢?