[GRASS-SVN] r39333 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 29 13:31:16 EDT 2009
Author: martinl
Date: 2009-09-29 13:31:16 -0400 (Tue, 29 Sep 2009)
New Revision: 39333
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py
Log:
wxGUI: fix menu tree window
(merge r39331 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py 2009-09-29 17:28:46 UTC (rev 39332)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py 2009-09-29 17:31:16 UTC (rev 39333)
@@ -232,6 +232,11 @@
self.tree.ToggleItemSelection(itemSelected)
self.tree.itemSelected = None
+ if self.tree.itemSelected:
+ self.btnRun.Enable()
+ else:
+ self.btnRun.Enable(False)
+
def OnUpdateStatusBar(self, event):
"""!Update statusbar text"""
element = self.searchDict[self.searchBy.GetStringSelection()]
@@ -245,12 +250,6 @@
else:
self.statusbar.SetStatusText("", 0)
- if nItems > 0:
- self.tree.itemSelected = self.tree.itemsMarked[0]
- self.btnRun.Enable()
- else:
- self.btnRun.Enable(False)
-
event.Skip()
def SearchItems(self, element, value):
More information about the grass-commit
mailing list