[gnue] r9726 - trunk/gnue-forms/src/uidrivers/qt3/widgets

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: jamest
Date: 2007-06-19 10:07:27 -0500 (Tue, 19 Jun 2007)
New Revision: 9726

Modified:
   trunk/gnue-forms/src/uidrivers/qt3/widgets/form.py
Log:
redo the last fix so it doesn't mess up page changes in ON-ACTIVATION triggers


Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/form.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/widgets/form.py	2007-06-19 14:57:06 UTC (rev 9725)
+++ trunk/gnue-forms/src/uidrivers/qt3/widgets/form.py	2007-06-19 15:07:27 UTC (rev 9726)
@@ -75,6 +75,7 @@
         self.__status_fields = []
         self.sizing_enabled = False
 
+        self._inits.extend([self.__set_initial_page])
 
     # -------------------------------------------------------------------------
     # Create a new window object
@@ -126,8 +127,6 @@
         self._uiDriver.hide_splash()
         self.sizing_enabled = True
 
-        self.show_page(0)
-
         if modal and isinstance(self.main_window, qt.QDialog):
             self.main_window.setModal(True)
             self.main_window.exec_loop()
@@ -183,6 +182,13 @@
             self.__status_bar.addWidget(widget, stretch, True)
 
     # -------------------------------------------------------------------------
+    # Set the initial page during phased init
+    # -------------------------------------------------------------------------
+
+    def __set_initial_page (self):
+        self.show_page(0)
+
+    # -------------------------------------------------------------------------
     # Event-handler
     # -------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.