dabo Commit
Revision 4509
Date: 2008-09-08 10:55:54 -0700 (Mon, 08 Sep 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4509

Changed:
U   trunk/ide/ClassDesigner.py
U   trunk/ide/ClassDesignerControlMixin.py
U   trunk/ide/ClassDesignerPropSheet.py

Log:
Fixed the problem with an errant call to obj.layout().

Removed the code that re-bound the grid header painting.

Removed the 'PROP DICT ERROR' debug output.


Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py  2008-09-08 17:34:48 UTC (rev 4508)
+++ trunk/ide/ClassDesigner.py  2008-09-08 17:55:54 UTC (rev 4509)
@@ -2811,7 +2811,11 @@
                                dui.callAfter(self.select, pnl0)
                        else:
                                dui.callAfter(self.select, obj)
-                       obj.layout()
+                       try:
+                               obj.layout()
+                       except AttributeError:
+                               # The object does not have a layout() method
+                               pass
                        dui.callAfterInterval(100, self.updateLayout)
                return obj
 

Modified: trunk/ide/ClassDesignerControlMixin.py
===================================================================
--- trunk/ide/ClassDesignerControlMixin.py      2008-09-08 17:34:48 UTC (rev 
4508)
+++ trunk/ide/ClassDesignerControlMixin.py      2008-09-08 17:55:54 UTC (rev 
4509)
@@ -189,12 +189,6 @@
                        return super(ClassDesignerControlMixin, 
self).makeSizer()
                        
 
-## pkm: Don't need/want to explicitly call _paintHeader(), as that already
-##      happens in dGrid.              
-#      def onGridHeaderPaint(self, evt):
-#              self._paintHeader()
-               
-       
        def bringToFront(self):
                super(ClassDesignerControlMixin, self).bringToFront()
                prn = self.Parent

Modified: trunk/ide/ClassDesignerPropSheet.py
===================================================================
--- trunk/ide/ClassDesignerPropSheet.py 2008-09-08 17:34:48 UTC (rev 4508)
+++ trunk/ide/ClassDesignerPropSheet.py 2008-09-08 17:55:54 UTC (rev 4509)
@@ -710,7 +710,8 @@
                try:
                        return self.propDict[prop]
                except KeyError, e:
-                       print "PROP DICT ERROR: >%s<, row=%s" % (prop, row)
+                       return None
+#                      print "PROP DICT ERROR: >%s<, row=%s" % (prop, row)
                
        
        def fillGrid(self, force=False):




_______________________________________________
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