# -*- coding: utf-8 -*- from Tkinter import * from Tkconstants import * import Tix from Tkconstants import * root = Tix.Tk() def print_selected(args): print('selected dir:', args) def pathSelect(): d =Tix.ExFileSelectDialog(master=root, command=print_selected) d.popup() button = Button(root, text="dialog", command=pathSelect) button.pack() root.mainloop()