Author: reinhard
Date: 2006-10-19 06:53:12 -0500 (Thu, 19 Oct 2006)
New Revision: 8865

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
Fixed exception on form startup under wx.


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2006-10-19 11:11:59 UTC (rev 8864)
+++ trunk/gnue-forms/src/GFForm.py      2006-10-19 11:53:12 UTC (rev 8865)
@@ -272,6 +272,11 @@
         Called automatically during phaseInit().  It must happen after all
         children have init'ed.
         """
+
+        # Set the current page in case the buildForm on UI side generates a
+        # _event_page_changed().
+        self._currentPage = self._layout._pageList[0]
+
         # build the UI form
         self._instance._uiinstance.buildForm(self, self.name)
 
@@ -352,6 +357,7 @@
         tab. It makes sure that the logical focus follows the physical focus.
         """
 
+        print "event_page_changed"
         try:
             self._currentPage.focus_out()
         except:



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to