[GRASS-SVN] r42741 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 9 10:39:49 EDT 2010
Author: hamish
Date: 2010-07-09 14:39:49 +0000 (Fri, 09 Jul 2010)
New Revision: 42741
Modified:
grass/trunk/gui/wxpython/gui_modules/preferences.py
Log:
enhance g.mapsets notes, how to grey out top item on list? (merge from devbr6)
Modified: grass/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py 2010-07-09 14:38:38 UTC (rev 42740)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py 2010-07-09 14:39:49 UTC (rev 42741)
@@ -2149,7 +2149,12 @@
label = wx.StaticText(parent=self, id=wx.ID_ANY,
label=_("Check a mapset to make it accessible, uncheck it to hide it.%s"
- "Note: The current mapset is always accessible.") % os.linesep)
+ " Notes:%s"
+ " - The current mapset is always accessible.%s"
+ " - You may only write to the current mapset.%s"
+ " - You may only write to mapsets which you own.") %
+ (os.linesep, os.linesep, os.linesep, os.linesep))
+
sizer.Add(item=label, proportion=0,
flag=wx.ALL, border=5)
@@ -2163,6 +2168,9 @@
for mset in self.accessible_mapsets:
self.mapsetlb.CheckItem(self.all_mapsets_ordered.index(mset), True)
+ # FIXME (howto?): grey-out current mapset
+ #self.mapsetlb.Enable(0, False)
+
# dialog buttons
line = wx.StaticLine(parent=self, id=wx.ID_ANY,
style=wx.LI_HORIZONTAL)
@@ -2243,4 +2251,3 @@
mapset = self.parent.all_mapsets_ordered[index]
if mapset == self.parent.curr_mapset:
self.CheckItem(index, True)
-
More information about the grass-commit
mailing list