/[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 376 by jonathan, Tue Jan 28 12:01:38 2003 UTC revision 379 by jonathan, Tue Jan 28 12:54:01 2003 UTC
# Line 36  class ClassTable(wxPyGridTableBase): Line 36  class ClassTable(wxPyGridTableBase):
36          for range in self.clinfo.ranges:          for range in self.clinfo.ranges:
37              self.tdata.append([range[2], '%s-%s' % range[0], range[1]])              self.tdata.append([range[2], '%s-%s' % range[0], range[1]])
38    
39          self.SetColLabelValue(1, "Data Values")          self.SetColLabelValue(1, _("Data Values"))
40    
41      def GetNumberRows(self):      def GetNumberRows(self):
42          return len(self.tdata)          return len(self.tdata)
# Line 92  class Classifier(wxDialog): Line 92  class Classifier(wxDialog):
92    
93          table = ClassTable(layer.classification)          table = ClassTable(layer.classification)
94          self.classTable.SetTable(table, true)          self.classTable.SetTable(table, true)
 <<<<<<< classifier.py  
95    
96          topBox.Add(self.classTable, 0, wxGROW, 0)          topBox.Add(self.classTable, 0, wxGROW, 0)
 =======  
         #table.SetNumberRows(10)  
         #table.SetNumberCols(2)  
         table.SetColLabelValue(0, _("Class"))  
         table.SetColLabelValue(1, _("Value"))  
         #self.classTable.SetColLabelValue(0, _("Class"))  
         #self.classTable.SetColLabelValue(1, _("Value"))  
         #self.classTable.SetCellValue(1, 1, _("Value"))  
   
         tableBox.Add(self.classTable, 0, wxALL, 4)  
           
         topBox.Add(self.classTable, 0, 0)  
 >>>>>>> 1.2  
97    
98          #          #
99          # Control buttons:          # Control buttons:

Legend:
Removed from v.376  
changed lines
  Added in v.379

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26