dabo Commit
Revision 4128
Date: 2008-06-11 13:53:28 -0700 (Wed, 11 Jun 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4128
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Refactored the code for _getShowColumnLabels and _getShowRowLabels.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-06-11 19:21:01 UTC (rev 4127)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-06-11 20:53:28 UTC (rev 4128)
@@ -1701,6 +1701,10 @@
self._inRangeSelect = False
# Flag to indicate we are in a selection update event
self._inUpdateSelection = False
+
+ # Do we show row or column labels?
+ self._showColumnLabels = True
+ self._showRowLabels = False
# These hold the values that affect row/col hiliting
self._selectionForeColor = "black"
@@ -4331,11 +4335,7 @@
def _getShowColumnLabels(self):
- if hasattr(self, "_showColumnLabels"):
- v = self._showColumnLabels
- else:
- v = self._showColumnLabels = True
- return v
+ return self._showColumnLabels
def _setShowColumnLabels(self, val):
if self._constructed():
@@ -4349,11 +4349,7 @@
def _getShowRowLabels(self):
- if hasattr(self, "_showRowLabels"):
- v = self._showRowLabels
- else:
- v = self._showRowLabels = False
- return v
+ return self._showRowLabels
def _setShowRowLabels(self, val):
if self._constructed():
_______________________________________________
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]