src/eric7/EricWidgets/EricApplication.py

branch
eric7
changeset 11034
7b8a21fd2d58
parent 10933
95a15b70f7bb
child 11035
e1e1d6e317c7
--- a/src/eric7/EricWidgets/EricApplication.py	Sun Nov 03 12:34:02 2024 +0100
+++ b/src/eric7/EricWidgets/EricApplication.py	Sun Nov 03 17:50:34 2024 +0100
@@ -73,6 +73,8 @@
 
         self.__hasNonStandardPalette = False
 
+        self.__mainWindow = None
+
     def usesSmallScreen(self):
         """
         Public method to determine, if the application is used on a small
@@ -291,5 +293,23 @@
             > palette.color(QPalette.ColorRole.Window).lightness()
         )
 
+    def setMainWindow(self, mainWindow):
+        """
+        Public method to set the reference to the application main window.
+
+        @param mainWindow reference to the application main window
+        @type QWidget
+        """
+        self.__mainWindow = mainWindow
+
+    def getMainWindow(self):
+        """
+        Public method to get a reference to the application main window.
+        
+        @return reference to the application main window
+        @rtype QWidget
+        """
+        return self.__mainWindow
+
 
 ericApp = QCoreApplication.instance

eric ide

mercurial