Dialog creation reading and writing files

Introduction
This is an example of dialog creation with PySide.

In this example, the entire interface is defined in Python. Although this is possible for small interfaces, for larger interfaces the recommendation is to create files through Qt Designer, and load these in the program.

Dialog for writing to a file
Complete code:

Dialog to read a file
Complete code: