Changeset 3076
- Timestamp:
- 04/22/2007 02:25:46 PM (2 years ago)
- Files:
-
- trunk/dabo/lib/datanav2/Grid.py (modified) (2 diffs)
- trunk/dabo/ui/uiwx/dGrid.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/lib/datanav2/Grid.py
r3073 r3076 18 18 self.bindEvent(dEvents.KeyDown, self._onGridKeyDown) 19 19 20 21 def _initProperties(self): 22 # Highlight the selected row for the grid 23 self.SelectionMode = "Row" 24 # Limit selection to a single row 25 self._multipleSelection = False 26 # Turn on alternate row coloring 27 self.AlternateRowColoring = True 28 29 super(Grid, self)._initProperties() 30 20 31 21 32 def _afterInit(self): … … 28 39 self.DataSource = self.Form.previewDataSource 29 40 30 # Highlight the selected row for the grid31 self.SelectionMode = "Row"32 # Limit selection to a single row33 self._multipleSelection = False34 # Turn on alternate row coloring35 self.AlternateRowColoring = True36 37 41 38 42 def populate(self): trunk/dabo/ui/uiwx/dGrid.py
r3071 r3076 3381 3381 3382 3382 def _setAlternateRowColoring(self, val): 3383 self._alternateRowColoring = val 3384 self.setTableAttributes(self._Table) 3385 self.Refresh() 3383 if self._constructed(): 3384 self._alternateRowColoring = val 3385 self.setTableAttributes(self._Table) 3386 self.Refresh() 3387 else: 3388 self._properties["AlternateRowColoring"] = val 3386 3389 3387 3390
