/[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 2191 by jan, Thu Apr 22 15:45:01 2004 UTC revision 2527 by bernhard, Thu Jan 20 11:45:15 2005 UTC
# Line 832  class GenQuantilesPanel(wxPanel): Line 832  class GenQuantilesPanel(wxPanel):
832                                          _("Retrieve from Table"))                                          _("Retrieve from Table"))
833    
834          self.spin_numClasses = wxSpinCtrl(self, -1, style=wxTE_RIGHT)          self.spin_numClasses = wxSpinCtrl(self, -1, style=wxTE_RIGHT)
835          self.spin_numClasses.SetRange(1, sys.maxint)          self.spin_numClasses.SetRange(2, sys.maxint)
836          self.spin_numClasses.SetValue(1)          self.spin_numClasses.SetValue(2)
837    
838    
839          sizer = wxBoxSizer(wxHORIZONTAL)          sizer = wxBoxSizer(wxHORIZONTAL)
# Line 904  class GenQuantilesPanel(wxPanel): Line 904  class GenQuantilesPanel(wxPanel):
904              try:              try:
905                  min, max = table.ValueRange(self.fieldName)                  min, max = table.ValueRange(self.fieldName)
906                  self.text_range.SetValue("[" + str(min) + ";" + str(max) + "]")                  self.text_range.SetValue("[" + str(min) + ";" + str(max) + "]")
907                    # This is a workaround, which will result in OnRangeText
908                    # being called twice on some platforms.
909                    # Testing showed this is needed with current wx 2.4. versions
910                    # on MacOSX to guarantee that it is called at all.
911                    self.OnRangeText(None)
912              finally:              finally:
913                  ThubanEndBusyCursor()                  ThubanEndBusyCursor()
914    

Legend:
Removed from v.2191  
changed lines
  Added in v.2527

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26