Mar-07-2017, 11:30 AM
Hi Ichabod,
Thanks for that, I do indeed have a separate class dealing with all the calculations etc, but where I am having difficulty is linking back to the overall class. For example, I am using the mainWindow class to handle displaying of any other windows, from here, the other windows will accept some form of data which gets saved as a dictionary (usually named doc as I am working with couchdb, and that can be easily sent to the database) The problem I am having is sending this doc "back" to the main window which is already open. My work around, is to instantiating everything from the main window which looks very messy to me and stops being Object Oriented also, as it becomes one script but with a couple of random classes that are the other widgets being used.
How would you send something back to an already open window?
Thanks for that, I do indeed have a separate class dealing with all the calculations etc, but where I am having difficulty is linking back to the overall class. For example, I am using the mainWindow class to handle displaying of any other windows, from here, the other windows will accept some form of data which gets saved as a dictionary (usually named doc as I am working with couchdb, and that can be easily sent to the database) The problem I am having is sending this doc "back" to the main window which is already open. My work around, is to instantiating everything from the main window which looks very messy to me and stops being Object Oriented also, as it becomes one script but with a couple of random classes that are the other widgets being used.
How would you send something back to an already open window?