Making File Dialogs In PyQt6 Using QFileDialog! | PyQt6 Tutorial Part 7

preview_player
Показать описание

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.
Рекомендации по теме
Комментарии
Автор

Thank you very much for this series... On this particular tutorial, might I bring your attention to the following: After opening a file, especially for writing, we should always close it. Best regards.

vanbehainguyen
Автор

Great Tutorial ! How did you learn all of this}? Documentation?

wise_old_tree