dabo Commit
Revision 4591
Date: 2008-10-24 09:17:38 -0700 (Fri, 24 Oct 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4591
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Exposed the previously hidden dColumn property _GridColumnIndex to the public as
ColumnIndex.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-10-24 15:51:03 UTC (rev 4590)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-10-24 16:17:38 UTC (rev 4591)
@@ -673,7 +673,7 @@
# Other options, in case this starts to fail, are:
# self.Parent.Header.Refresh()
#
self.Parent._paintHeader(self._GridColumnIndex)
- self.Parent.SetColLabelValue(self._GridColumnIndex, "")
+ self.Parent.SetColLabelValue(self.ColumnIndex, "")
def _refreshGrid(self):
"""Refresh the grid region, not the header region."""
@@ -727,7 +727,7 @@
app.setUserSetting(settingName, val)
- def _getGridColumnIndex(self):
+ def _getColumnIndex(self):
"""Return our column index in the grid, or -1."""
gridCol = -1
try:
@@ -1364,7 +1364,7 @@
def _getWidth(self):
- idx = self._GridColumnIndex
+ idx = self.ColumnIndex
try:
v = self._width
except AttributeError:
@@ -1389,7 +1389,7 @@
grd = self.Parent
if grd:
grd._syncColumnCount()
- idx = self._GridColumnIndex
+ idx = self.ColumnIndex
if idx >= 0:
# Change the size in the wx grid:
grd.SetColSize(idx, val)
@@ -1422,8 +1422,11 @@
_("Color for the background of each cell in the
column."))
Caption = property(_getCaption, _setCaption, None,
- _("Caption displayed in this column's header (str)") )
+ _("Specifies the caption displayed in this column's
header.") )
+ ColumnIndex = property(_getColumnIndex, None,
+ _("Returns the index of this column in the parent
grid."))
+
CellForeColor = property(_getCellForeColor, _setCellForeColor, None,
_("Color for the foreground (text) of the current cell
in the column."))
@@ -1602,7 +1605,6 @@
_("When True, text longer than the column width will
wrap to the next line (bool)"))
- _GridColumnIndex = property(_getGridColumnIndex)
# Dynamic Property Declarations
_______________________________________________
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]