[GRASS-SVN] r47242 - grass-addons/grass7/gui/wxpython/wx.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 25 23:43:45 EDT 2011
Author: sudeepsingh
Date: 2011-07-25 20:43:45 -0700 (Mon, 25 Jul 2011)
New Revision: 47242
Modified:
grass-addons/grass7/gui/wxpython/wx.wms/addserver.py
Log:
Optional password added
Modified: grass-addons/grass7/gui/wxpython/wx.wms/addserver.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/addserver.py 2011-07-26 02:17:42 UTC (rev 47241)
+++ grass-addons/grass7/gui/wxpython/wx.wms/addserver.py 2011-07-26 03:43:45 UTC (rev 47242)
@@ -17,17 +17,18 @@
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
self.StatusBar = self.CreateStatusBar(1, 0)
- self.Servers = wx.StaticText(self, -1, "Servers")
+ self.Servers = wx.StaticText(self, -1, " Servers")
self.ServerList = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
self.static_line_1 = wx.StaticLine(self, -1)
- self.ServerName = wx.StaticText(self, -1, "ServerName")
+ self.ServerName = wx.StaticText(self, -1, " ServerName*")
self.ServerNameText = wx.TextCtrl(self, -1, "")
- self.URL = wx.StaticText(self, -1, "URL")
+ self.URL = wx.StaticText(self, -1, " URL*")
self.URLText = wx.TextCtrl(self, -1, "")
- self.Username = wx.StaticText(self, -1, "Username")
+ self.Username = wx.StaticText(self, -1, " Username*")
self.UsernameText = wx.TextCtrl(self, -1, "")
- self.Password = wx.StaticText(self, -1, "Password")
+ self.Password = wx.StaticText(self, -1, " Password")
self.PasswordText = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD)
+ self.PasswordExplain = wx.StaticText(self, -1, " Note: Password will be stored as a plain text")
self.static_line_2 = wx.StaticLine(self, -1)
self.Save = wx.Button(self, -1, "Save")
self.Remove = wx.Button(self, -1, "Remove")
@@ -57,7 +58,7 @@
self.StatusBar.SetStatusText(StatusBar_fields[i], i)
self.Servers.SetMinSize((90, 17))
self.ServerList.SetMinSize((189, 29))
- self.ServerName.SetMinSize((90, 20))
+ self.ServerName.SetMinSize((96, 20))
self.ServerNameText.SetMinSize((189, 25))
self.URL.SetMinSize((90, 20))
self.URLText.SetMinSize((189, 25))
@@ -65,6 +66,7 @@
self.UsernameText.SetMinSize((189, 25))
self.Password.SetMinSize((90, 20))
self.PasswordText.SetMinSize((189, 25))
+ self.PasswordExplain.SetMinSize((303, 20))
# end wxGlade
def __do_layout(self):
@@ -92,6 +94,7 @@
sizer_6.Add(self.Password, 0, 0, 0)
sizer_6.Add(self.PasswordText, 0, 0, 0)
sizer_1.Add(sizer_6, 1, wx.EXPAND, 0)
+ sizer_1.Add(self.PasswordExplain, 0, 0, 0)
sizer_1.Add(self.static_line_2, 0, wx.EXPAND, 0)
sizer_7.Add(self.Save, 0, 0, 0)
sizer_7.Add(self.Remove, 0, 0, 0)
More information about the grass-commit
mailing list