[GRASS-SVN] r67550 - grass/trunk/gui/wxpython/web_services
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 11 06:24:41 PST 2016
Author: annakrat
Date: 2016-01-11 06:24:41 -0800 (Mon, 11 Jan 2016)
New Revision: 67550
Modified:
grass/trunk/gui/wxpython/web_services/dialogs.py
Log:
wxGUI/wms: dialog improvements (see #2859)
Modified: grass/trunk/gui/wxpython/web_services/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/web_services/dialogs.py 2016-01-11 12:41:54 UTC (rev 67549)
+++ grass/trunk/gui/wxpython/web_services/dialogs.py 2016-01-11 14:24:41 UTC (rev 67550)
@@ -123,6 +123,7 @@
self.layerName = wx.TextCtrl(parent = self.reqDataPanel, id = wx.ID_ANY)
for ws in self.ws_panels.iterkeys():
+ # set class WSPanel argument layerNameTxtCtrl
self.ws_panels[ws]['panel'] = WSPanel(parent = self.reqDataPanel,
web_service = ws)
self.ws_panels[ws]['panel'].capParsed.connect(self.OnPanelCapParsed)
@@ -221,7 +222,12 @@
dialogSizer.Add(item = self.btnsizer, proportion = 0,
flag = wx.ALIGN_CENTER)
- dialogSizer.Add(item = self.statusbar, proportion = 0)
+ # expand wxWidget wx.StatusBar
+ statusbarSizer = wx.BoxSizer(wx.HORIZONTAL)
+ statusbarSizer.Add(item=self.statusbar, proportion=1, flag=wx.EXPAND)
+ dialogSizer.Add(item=statusbarSizer,
+ proportion=0,
+ flag=wx.EXPAND)
self.SetSizer(dialogSizer)
self.Layout()
@@ -303,6 +309,12 @@
else:
self.adv_conn.Collapse(True)
+ # clear content of the wxWidget wx.TextCtrl (Output layer
+ # name:), based on changing default server selection in the
+ # wxWidget wx.Choice
+ if len(self.layerName.GetValue()) > 0:
+ self.layerName.Clear()
+
def OnClose(self, event):
"""Close the dialog
"""
@@ -327,6 +339,11 @@
else:
self.btn_connect.Enable(False)
+ # clear content of the wxWidget wx.TextCtrl (Output Layer
+ # name:), based on changing content of the wxWidget
+ # wx.TextCtrl (Server:)
+ self.layerName.Clear()
+
def OnOutputLayerName(self, event):
"""Update layer name to web service panel
"""
More information about the grass-commit
mailing list