/[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 392 by jonathan, Mon Feb 10 15:26:30 2003 UTC revision 400 by jonathan, Tue Feb 11 14:29:09 2003 UTC
# Line 30  class ClassTable(wxPyGridTableBase): Line 30  class ClassTable(wxPyGridTableBase):
30    
31      def __init__(self, clinfo):      def __init__(self, clinfo):
32          wxPyGridTableBase.__init__(self)          wxPyGridTableBase.__init__(self)
         self.clinfo = copy.deepcopy(clinfo)  
33    
34          self.tdata = []          self.tdata = []
35    
36          self.tdata.append([self.clinfo.DefaultData, 'DEFAULT'])          self.tdata.append([clinfo.DefaultData, 'DEFAULT'])
37    
38          for value, data in self.clinfo.points.items():          for value, data in clinfo.points.items():
39              self.tdata.append([data, value])              self.tdata.append([data, value])
40    
41          for range in self.clinfo.ranges:          for range in clinfo.ranges:
42              self.tdata.append([range[2], '%s-%s' % range[0], range[1]])              self.tdata.append([range[2], '%s-%s' % range[0], range[1]])
43    
44          self.SetColLabelValue(1, _("Data Values"))          self.SetColLabelValue(1, _("Data Values"))

Legend:
Removed from v.392  
changed lines
  Added in v.400

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26