[GRASS-SVN] r36296 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 10 00:13:28 EDT 2009
Author: cmbarton
Date: 2009-03-10 00:13:28 -0400 (Tue, 10 Mar 2009)
New Revision: 36296
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
Log:
Multiple fixes to location wizard: 1) search on projection page does not go to next page before user has chance to review items found; 2) georeferencing parameters page formatted correctly; 3) EPSG code transform parameters now formatted better so that they can be seen better.
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py 2009-03-09 23:01:39 UTC (rev 36295)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py 2009-03-10 04:13:28 UTC (rev 36296)
@@ -427,8 +427,6 @@
except:
self.proj = self.projdesc = ''
- self.tproj.SetValue(self.proj)
-
event.Skip()
def OnItemSelected(self, event):
@@ -674,16 +672,16 @@
border=5, pos=(4, 1), span=(1, 2))
self.sizer.Add(item=self.label_utm,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
- border=5, pos=(5, 1))
+ border=5, pos=(5, 1), span=(1, 1))
self.sizer.Add(item=self.text_utm,
flag=wx.ALIGN_LEFT | wx.ALL, border=5,
- pos=(5, 2))
+ pos=(5, 2), span=(1, 1))
self.sizer.Add(item=self.label_hemisphere,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
- border=5, pos=(6, 1))
+ border=5, pos=(6, 1), span=(1, 1))
self.sizer.Add(item=self.hemisphere,
flag=wx.ALIGN_LEFT|wx.ALL,
- border=5, pos=(6, 2))
+ border=5, pos=(6, 2), span=(1, 1))
self.title_utm.Hide()
self.text_utm.Hide()
@@ -2617,7 +2615,7 @@
bodySizer = wx.StaticBoxSizer(bodyBox, wx.HORIZONTAL)
gridSizer = wx.GridBagSizer(vgap=5, hgap=5)
- gridSizer.Add(item=wx.StaticText(parent=panel, label=_("Datums:")),
+ gridSizer.Add(item=wx.StaticText(parent=panel, label=_("Datums (select to see description):")),
flag=wx.ALIGN_CENTER_VERTICAL, pos=(0, 0))
items = self.datums.keys()
@@ -2625,14 +2623,16 @@
self.cdatums = wx.ComboBox(parent=panel, id=wx.ID_ANY,
style=wx.CB_SIMPLE | wx.CB_READONLY,
choices=items,
- size=(300,-1))
+ size=(60,-1))
self.cdatums.SetSelection(0)
self.cdatums.Bind(wx.EVT_COMBOBOX, self.OnChangeDatum)
gridSizer.Add(item=self.cdatums, pos=(0, 1))
self.textWidth = self.GetSize()[0]
- self.datumDesc = wx.StaticText(parent=panel,
- label='\n'.join(self.datums[self.cdatums.GetStringSelection()]))
+
+ self.datumDesc = wx.StaticText(parent=panel, size=(self.textWidth,-1),
+ label='\n'.join(self.datums[self.cdatums.GetStringSelection()]))
+
self.datumDesc.Wrap(self.textWidth)
gridSizer.Add(item=self.datumDesc, flag=wx.EXPAND,
@@ -2670,7 +2670,8 @@
def OnChangeDatum(self, event):
"""Datum changed, update description text"""
self.datumDesc.SetLabel('\n'.join(self.datums[event.GetString()]))
- self.datumDesc.Wrap(self.textWidth)
+# self.textWidth = self.GetSize()[0]
+# self.datumDesc.Wrap(self.textWidth)
event.Skip()
More information about the grass-commit
mailing list