mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-25 01:06:05 +03:00
Updates prefs.py for "import tkinter.filedialog"
This commit is contained in:
1 parent
2440cf4a67
commit
a8c0ec3ab9
1 file changed
+2
-2
@@ -354,8 +354,8 @@ class PreferencesDialog(tk.Toplevel):
|
||||
|
||||
def filebrowse(self, title, pathvar):
|
||||
if platform != 'win32':
|
||||
import tkFileDialog
|
||||
d = tkFileDialog.askdirectory(parent=self, initialdir=expanduser(pathvar.get()), title=title, mustexist=tk.TRUE)
|
||||
import tkinter.filedialog
|
||||
d = tkinter.filedialog.askdirectory(parent=self, initialdir=expanduser(pathvar.get()), title=title, mustexist=tk.TRUE)
|
||||
else:
|
||||
def browsecallback(hwnd, uMsg, lParam, lpData):
|
||||
# set initial folder
|
||||
|
||||
Reference in new issue
Block a user