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

Version Path
openc3-cosmos-demo-5.17.1 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.17.0 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.16.0 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.15.2 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.15.1 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.15.0 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.14.2 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.14.1 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.14.0 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.13.0 targets/INST2/procedures/file_dialog.py
openc3-cosmos-demo-5.12.0 targets/INST2/procedures/file_dialog.py