import tkinter, tkinter.filedialog
root = tkinter.Tk()
dirname = tkinter.filedialog.askdirectory(parent=root, initialdir='/', title=
    'Please select a directory')
if len(dirname) > 0:
    print('You chose %s' % dirname)
import tkinter, tkinter.filedialog
root = tkinter.Tk()
file = tkinter.filedialog.askopenfile(parent=root, mode='rb', title='Choose a file')
if file != None:
    data = file.read()
file.close()
print('I got %d bytes from this file.' % len(data))
import tkinter, tkinter.filedialog
myFormats = [('Windows Bitmap', '*.bmp'), ('Portable Network Graphics',
    '*.png'), ('JPEG / JFIF', '*.jpg'), ('CompuServer GIF', '*.gif')]
root = tkinter.Tk()
fileName = tkinter.filedialog.asksaveasfilename(parent=root, filetypes=myFormats,
    title='Save the image as...')
if len(fileName) > 0:
    pass
Просмотрите графический интерфейс каталога Windows с помощью Python 2.7