dabo Commit
Revision 4508
Date: 2008-09-08 10:34:48 -0700 (Mon, 08 Sep 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4508
Changed:
U trunk/ide/ClassDesignerControlMixin.py
Log:
This fixes the updateBox traceback, but I left it commented as I don't know if
there was some special reason we were calling _paintHeader() explicitly from
the ClassDesignerControlMixin.
Now that this is fixed, I'm getting another traceback in the class designer
that I'll pass back to Ed:
{{{
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
14551, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "ClassDesigner.py", line 2814, in addNewControl
obj.layout()
AttributeError: 'controlMix' object has no attribute 'layout'
}}}
This is after right-clicking on the form, choosing "add grid" from the Data
Controls submenu,
and accepting the default 3 columns. The grid appears but this traceback
appears in the
terminal.
Diff:
Modified: trunk/ide/ClassDesignerControlMixin.py
===================================================================
--- trunk/ide/ClassDesignerControlMixin.py 2008-09-08 02:19:03 UTC (rev
4507)
+++ trunk/ide/ClassDesignerControlMixin.py 2008-09-08 17:34:48 UTC (rev
4508)
@@ -188,10 +188,12 @@
else:
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 onGridHeaderPaint(self, evt):
- self._paintHeader()
-
def bringToFront(self):
super(ClassDesignerControlMixin, self).bringToFront()
_______________________________________________
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]