Two different windows may need to share information during program execution. While this data might be saved to disk and read from the window that consumes it, in some circumstances it is more straightforward to handle it in memory and simply pass this information as variables.
Passing variables between windows
Getting ready
The main window will contain three radio buttons to select the type of user that we want to create, and the secondary window will open the form to fill in the user data:
How to do it...
To hold the user data, we create namedtuple with fields that...