I have a program with an interface made with Pyside. It is very simple and consists of 2 windows, the main (1st) and a secondary (2nd) with a lot of lines edits and labels to fill. What I would like to know is if there is a way so that when you close the 2nd window all the fields are deleted and when you open it again all the empty fields are empty.
It may be worth cleaning when closing or opening again.
I know that it can be done by putting all the blank edits and labels one by one at the start, but it was in case there is a more automatic and fast way.
Greetings and thanks