Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Encapsulation issue
#3
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?
Reply


Messages In This Thread
Encapsulation issue - by iFunKtion - Mar-02-2017, 04:04 PM
RE: Encapsulation issue - by ichabod801 - Mar-02-2017, 11:12 PM
RE: Encapsulation issue - by iFunKtion - Mar-07-2017, 11:30 AM
RE: Encapsulation issue - by merlem - Mar-07-2017, 12:11 PM
RE: Encapsulation issue - by ichabod801 - Mar-07-2017, 10:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Encapsulation codinglearner 2 1,501 Apr-02-2024, 01:26 PM
Last Post: DataScience
  Function encapsulation Oldman45 4 2,347 Jan-22-2021, 11:38 AM
Last Post: Oldman45
  Preserve Encapsulation while Displaying Information QueenSvetlana 13 7,111 Dec-07-2017, 06:13 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020