[GRASS-SVN] r31508 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 24 11:42:55 EDT 2008
Author: martinl
Date: 2008-05-24 11:42:55 -0400 (Sat, 24 May 2008)
New Revision: 31508
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: bugfix for trac #176
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2008-05-24 08:29:03 UTC (rev 31507)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2008-05-24 15:42:55 UTC (rev 31508)
@@ -396,8 +396,8 @@
if 'GRASS_INFO_PERCENT' in line:
# 'GRASS_INFO_PERCENT: 10' -> value=10
- value = int(line.split(':')[1].strip())
- if value < 100:
+ value = int(line.rsplit(':', 1)[1].strip())
+ if value >= 0 and value < 100:
self.gmgauge.SetValue(value)
else:
self.gmgauge.SetValue(0) # reset progress bar on '0%'
More information about the grass-commit
mailing list