Code Link: https://github.com/RoyChng/pyqt6-tuto...
In this tutorial, we take a look at how to make use of QFileDialog in PyQt6 to allow users to select or create new files.
We also look at the possible configurations such as setting filters to only allow certain file extensions as well as to specify the file mode which is useful when you want to only allow the user to choose folders only or files that already exist.
Lastly, we create a notepad application that gives the user the choice of opening a text file or writing to a new text file.