def choose_file_dialog(**options):
""" Creates an open file dialog to choose a file, and returns a handle to that file """
root = Tk.Tk()
root.geometry('0x0+400+400')
root.wait_visibility()
root.wm_attributes('-alpha', 0.0)
root.lift()
root.focus_force()
chosen_files = tkFileDialog.askopenfile(**options)
root.destroy()
return chosen_files
评论列表
文章目录