Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
 
PREVIOUS NEXT
Tagged: #python #tkinter #askopenfile
ADD COMMENT
Topic
Name
4+9 =