#!/usr/bin/python
# -*- coding: UTF-8 -*-
from Tkinter import *
from tkFileDialog import askopenfilename

def callback():
    name = askopenfilename()
    print name

errmsg = 'Error!'
Button(text='File Open', command=callback).pack(fill=X)
mainloop()

e618ffb7c492c34c32eb0f5da84f8f2850a27782
#!/usr/bin/python
# -*- coding: UTF-8 -*-
from Tkinter import *
from tkFileDialog import askopenfilename

def callback():
    name = askopenfilename()
    print name

errmsg = 'Error!'
Button(text='File Open', command=callback).pack(fill=X)
mainloop()
