Answers for "python tkinter askopenfile"

0

python tkinter askopenfile

file = askopenfile(mode ='r', filetypes =[('Python Files', '*.py'), ('Text Files', '*.txt')]) 

if file is not None: 
    content = file.read() 
    print(content)
file.close()
Posted by: Guest on June-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language