/[thuban]/trunk/thuban/Thuban/UI/classifier.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/UI/classifier.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 460 by jonathan, Wed Mar 5 18:16:28 2003 UTC revision 476 by bh, Thu Mar 6 15:03:37 2003 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001 by Intevation GmbH  # Copyright (c) 2001, 2003 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jonathan Coles <[email protected]>  # Jonathan Coles <[email protected]>
4  #  #
# Line 11  __version__ = "$Revision$" Line 11  __version__ = "$Revision$"
11    
12  import copy  import copy
13    
14    from Thuban.Model.table import FIELDTYPE_INT, FIELDTYPE_DOUBLE, \
15         FIELDTYPE_STRING
16    
17  from wxPython.wx import *  from wxPython.wx import *
18  from wxPython.grid import *  from wxPython.grid import *
19    
# Line 63  class ClassGrid(wxGrid): Line 66  class ClassGrid(wxGrid):
66          """          """
67    
68          wxGrid.__init__(self, parent, ID_CLASS_TABLE, size = (340, 160))          wxGrid.__init__(self, parent, ID_CLASS_TABLE, size = (340, 160))
69          self.SetTable(ClassTable(fieldData, layer.ShapeType(), self), true)          #self.SetTable(ClassTable(fieldData, layer.ShapeType(), self), true)
         self.SetSelectionMode(wxGrid.wxGridSelectRows)  
70    
71          EVT_GRID_CELL_LEFT_DCLICK(self, self._OnCellDClick)          EVT_GRID_CELL_LEFT_DCLICK(self, self._OnCellDClick)
72          EVT_GRID_RANGE_SELECT(self, self._OnSelectedRange)          EVT_GRID_RANGE_SELECT(self, self._OnSelectedRange)
# Line 83  class ClassGrid(wxGrid): Line 85  class ClassGrid(wxGrid):
85          else:          else:
86              table.Reset(clazz, self.shapeType)              table.Reset(clazz, self.shapeType)
87    
88            self.SetSelectionMode(wxGrid.wxGridSelectRows)
89          self.ClearSelection()          self.ClearSelection()
90    
91      def GetCurrentSelection(self):      def GetCurrentSelection(self):

Legend:
Removed from v.460  
changed lines
  Added in v.476

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26