mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 00:30:33 +03:00
Updates prefs.py for "import tkinter.filedialog"
This commit is contained in:
parent
a2e73fbe90
commit
95693edb19
4
prefs.py
4
prefs.py
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user