Sha256: e632a6a8919325bb06e3bd212c6b34c92e9b3fadfde4b53b21fc9040fbe1f04e
Contents?: true
Size: 567 Bytes
Versions: 11
Compression:
Stored size: 567 Bytes
Contents
# Specify the title and message and filter to txt files file = open_file_dialog( "Open a single file", "Choose something interesting", filter=".txt" ) print(file) # Python File object print(file.path) # Path of the tempfile (generally not used) print(file.filename) # Filename that was selected in the dialog print(file.read) file.delete files = open_files_dialog("Open multiple files") # message is optional print(files) # Array of File objects (even if you select only one) for file in files: print(file.filename) print(file.read) file.delete
Version data entries
11 entries across 11 versions & 1 rubygems