Sha256: fd3921372c3e538e85e41e336e5dcb51c3f1c93c0b87b35fbc41f6528794cd82
Contents?: true
Size: 596 Bytes
Versions: 6
Compression:
Stored size: 596 Bytes
Contents
from openc3.script import * # 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
6 entries across 6 versions & 1 rubygems