mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +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):
|
def filebrowse(self, title, pathvar):
|
||||||
if platform != 'win32':
|
if platform != 'win32':
|
||||||
import tkFileDialog
|
import tkinter.filedialog
|
||||||
d = tkFileDialog.askdirectory(parent=self, initialdir=expanduser(pathvar.get()), title=title, mustexist=tk.TRUE)
|
d = tkinter.filedialog.askdirectory(parent=self, initialdir=expanduser(pathvar.get()), title=title, mustexist=tk.TRUE)
|
||||||
else:
|
else:
|
||||||
def browsecallback(hwnd, uMsg, lParam, lpData):
|
def browsecallback(hwnd, uMsg, lParam, lpData):
|
||||||
# set initial folder
|
# set initial folder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user