/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/classgen.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/classgen.py

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

revision 607 by jonathan, Fri Apr 4 12:16:57 2003 UTC revision 620 by jonathan, Mon Apr 7 10:14:25 2003 UTC
# Line 313  class GenRangePanel(wxPanel): Line 313  class GenRangePanel(wxPanel):
313          else:          else:
314              win.SetForegroundColour(wxRED)              win.SetForegroundColour(wxRED)
315    
316            win.Refresh()
317    
318          return valid          return valid
319                    
320    
# Line 347  class ClassGenerator: Line 349  class ClassGenerator:
349          if numGroups == 0: return clazz          if numGroups == 0: return clazz
350    
351          for value, prop in zip(list, PropertyRamp(numGroups, prop1, prop2)):          for value, prop in zip(list, PropertyRamp(numGroups, prop1, prop2)):
352              clazz.AddGroup(ClassGroupSingleton(value, prop))              clazz.AppendGroup(ClassGroupSingleton(value, prop))
353    
354          return clazz          return clazz
355    
# Line 369  class ClassGenerator: Line 371  class ClassGenerator:
371    
372              # this check guards against rounding issues              # this check guards against rounding issues
373              if cur_min != cur_max:              if cur_min != cur_max:
374                  clazz.AddGroup(ClassGroupRange(cur_min, cur_max, prop))                  clazz.AppendGroup(ClassGroupRange(cur_min, cur_max, prop))
375    
376              cur_min = cur_max              cur_min = cur_max
377              cur_max += step              cur_max += step

Legend:
Removed from v.607  
changed lines
  Added in v.620

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26