[GRASS-dev] Re: [GRASS GIS] #842: wx location wizard: spincontrol busted for UTM zone

GRASS GIS trac at osgeo.org
Thu Jan 7 00:49:42 EST 2010


#842: wx location wizard: spincontrol busted for UTM zone
---------------------+------------------------------------------------------
  Reporter:  hamish  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect  |      Status:  new                      
  Priority:  major   |   Milestone:  6.4.0                    
 Component:  wxGUI   |     Version:  svn-develbranch6         
Resolution:          |    Keywords:  location wizard, utm     
  Platform:  Linux   |         Cpu:  x86-64                   
---------------------+------------------------------------------------------
Comment (by cmbarton):

 Please try the following. Comment out lines 731-742 in the OnParamEntry
 method

 {{{
 #        if self.ptype[num] == 'zone':
 #            try:
 #                valint = int(val)
 #            except:
 #                valint = 0

 #            if valint < 1:
 #                self.pentry[num].SetValue(1)
 #                val = '1'
 #            if valint > 60:
 #                self.pentry[num].SetValue(60)
 #                val = '60'

 }}}

 This disables the validation check for the text box of the spin control.
 If this works, maybe I can validate this another way.

 Michael

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/842#comment:9>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list