dabo Commit
Revision 4608
Date: 2008-10-26 08:34:10 -0700 (Sun, 26 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4608

Changed:
U   trunk/dabo/ui/uiwx/dForm.py

Log:
Commented out the code that allows for an optional main panel to be added to a 
form upon creation. I left the code in while we test existing code, but I 
haven't found anything in the framework that uses this. Trac issue #1033.



Diff:
Modified: trunk/dabo/ui/uiwx/dForm.py
===================================================================
--- trunk/dabo/ui/uiwx/dForm.py 2008-10-26 15:14:01 UTC (rev 4607)
+++ trunk/dabo/ui/uiwx/dForm.py 2008-10-26 15:34:10 UTC (rev 4608)
@@ -25,12 +25,12 @@
                
                # If this is True, a panel will be automatically added to the
                # form and sized to fill the form.
-               self.mainPanel = None
-               self.mkPanel = self._extractKey(attProperties, "panel", False)
-               if self.mkPanel is not False:
-                       self.mkPanel = (self.mkPanel == "True")
-               else:
-                       self.mkPanel = self._extractKey((kwargs, properties), 
"panel", False)
+#              self.mainPanel = None
+#              self.mkPanel = self._extractKey(attProperties, "panel", False)
+#              if self.mkPanel is not False:
+#                      self.mkPanel = (self.mkPanel == "True")
+#              else:
+#                      self.mkPanel = self._extractKey((kwargs, properties), 
"panel", False)
                
                # Use this for timing queries and other long-
                # running events
@@ -63,10 +63,10 @@
        def _afterInit(self):
                self.Sizer = dabo.ui.dSizer("vertical")
                self.Sizer.layout()
-               if self.mkPanel:
-                       mp = self.mainPanel = dabo.ui.dPanel(self)
-                       self.Sizer.append(mp, 1, "x")
-                       mp.Sizer = dabo.ui.dSizer(self.Sizer.Orientation)
+#              if self.mkPanel:
+#                      mp = self.mainPanel = dabo.ui.dPanel(self)
+#                      self.Sizer.append(mp, 1, "x")
+#                      mp.Sizer = dabo.ui.dSizer(self.Sizer.Orientation)
                super(BaseForm, self)._afterInit()
                if self.RequeryOnLoad:
                        dabo.ui.callAfter(self.requery)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to