Changeset 4219
- Timestamp:
- 06/30/08 20:22:36 (2 months ago)
- Files:
-
- trunk/dabo/ui/uiwx/dGrid.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/ui/uiwx/dGrid.py
r4217 r4219 974 974 def _setDataField(self, val): 975 975 if self._constructed(): 976 if self._dataField: 977 # Use a callAfter, since the parent may not be finished instantiating yet. 978 dabo.ui.callAfter(self._setDataTypeFromDataField, val) 976 979 self._dataField = val 977 # Use a callAfter, since the parent may not be finished instantiating yet.978 dabo.ui.callAfter(self._setDataTypeFromDataField, val)979 980 if not self.Name or self.Name == "?": 980 981 self._name = _("col_%s") % val … … 2959 2960 else: 2960 2961 # They probably passed a specific column instance 2961 colNum = self.Columns.index(col)2962 if colNum == -1:2963 # No such column2964 # raise an error?2962 try: 2963 colNum = self.Columns.index(col) 2964 except ValueError: 2965 # Column is not in the grid 2965 2966 return 2966 2967 del self.Columns[colNum]
