I’m sure my problem is not unique and has been asked before. But in order to look for a possible answer one must know the question(s) to ask or the keywords. I have tried: Input Dialogue, Form dialogue, used window rather than dialogue, dialogue rather than dialogue. Therefore please allow me to describe the application and issue.
I have a people logging application. I want to add details of people to the app (name, age, birthday, phone number) sounds familiar? The main window has a short-from list of the people added. The people data is handled by a dataclass which also saves it to a json file. This is handled via the main window.
On the main window is an add button which pops up a window (a Dialog or Window). New person data can be filled in and a save button returns to the main window.
NOW MY PEOBLEM: I need to get the new data back to the parent, ‘main’, window control so it can update the people dataclass, the json file and then the main window short-from list. But how?
I did consider directly accessing the people dataclass but the main window control is already controlling it. I foresaw dragons on that route.
I haven’t explicitly mentioned but I’m using Python and Gtk3. I would really prefer not to share my code at this point.
Any advice, pointers keywords, a previous solution would be appreciated.