dabo Commit
Revision 1272
Date: 2005-09-08 17:57:31 -0700 (Thu, 08 Sep 2005)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
I found the name of the mysterious third argument to
wxPyGridTableBase.GetAttr(), and made some notes regarding
it.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2005-09-09 00:05:49 UTC (rev 1271)
+++ trunk/dabo/ui/uiwx/dGrid.py 2005-09-09 00:57:31 UTC (rev 1272)
@@ -66,13 +66,22 @@
def setRowLabels(self, rowLbls):
self.rowLabels = rowLbls
- def GetAttr(self, row, col, no_idea):
- ## dGrid maintains one attribute object that applies to every
row
+ def GetAttr(self, row, col, kind=0):
+ ## dColumn maintains one attribute object that applies to every
row
## in the column. This can be extended later with optional
cell-specific
## attributes to override the column-specific ones, but I'll
wait for
## the need to present itself... perhaps we can implement a
VFP-inspired
## DynamicBackColor, DynamicFont..., etc.
+ # I have no idea what the kind arg is for. It is sent by wxGrid
to this
+ # function, it always seems to be 0, and it isn't documented in
the
+ # wxWidgets docs (but it does appear in the wxPython method
signature
+ # but still isn't documented there.)
+ if kind != 0:
+ # I'd like to know when kind isn't 0, to make sure I've
covered all the
+ # bases. Well okay, it's really because I'm just
curious.
+ dabo.infoLog.write("dGrid.Table.GetAttr:: kind is not
0, it is %s." % kind)
+
## The column attr object is maintained in dColumn:
return self.grid.Columns[col]._gridColAttr.Clone()
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev