#!/usr/bin/env python3

"""
Shows how to use a Qt FileDialog
"""

import sys
from PyQt5.QtWidgets import *


if __name__ == '__main__':
    app = QApplication(sys.argv)

    # Get single file
    options = QFileDialog.Options()
    caption = "Title: Getting File Name"
    directory = "./"
    filters = "All Files (*);;Python Scripts (*.py)"
    initial_filter = "Python Scripts (*.py)"
    filename, _ = QFileDialog.getOpenFileName(None,
                                              caption,
                                              directory,
                                              filters,
                                              initial_filter,
                                              options)
    print('Selected file: {}'.format(filename))

    # Select multiple files

    # getSaveFileName

    # Get directory

    sys.exit(app.exec_())
