# ======== Select a file for opening:import Tkinter,tkFileDialogdef choiseFile(): root = Tkinter.Tk() return tkFileDialog.askopenfile(parent=root,mode='rb',title='Choose a file')