SHARE
TWEET

dialog

a guest May 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. from tkinter import Tk
  3. from tkinter import filedialog
  4. toplevel = Tk()
  5. toplevel.withdraw()
  6. filename = filedialog.askopenfilename()
  7. # if os.path.isfile(filename):
  8. #     for line in open(filename,'r'):
  9. #         print(line,)
  10. # else: print('No file chosen')
  11. # input('Ready, push Enter')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top