[GRASS-SVN] r32998 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 22 11:04:46 EDT 2008
Author: martinl
Date: 2008-08-22 11:04:46 -0400 (Fri, 22 Aug 2008)
New Revision: 32998
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_mapdisp.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxGUI: loading nviz fixed, suppress gettext warnings
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_mapdisp.py 2008-08-22 14:19:12 UTC (rev 32997)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_mapdisp.py 2008-08-22 15:04:46 UTC (rev 32998)
@@ -55,8 +55,7 @@
self.setDaemon(True)
def run(self):
- self.nvizClass = wxnviz.Nviz(self.log, self.progressbar,
- self.window, wxCmdOutput)
+ self.nvizClass = wxnviz.Nviz(self.log)
class GLWindow(MapWindow, glcanvas.GLCanvas):
"""OpenGL canvas for Map Display Window"""
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py 2008-08-22 14:19:12 UTC (rev 32997)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py 2008-08-22 15:04:46 UTC (rev 32998)
@@ -2438,7 +2438,8 @@
else:
desc = _("Vector map <%s> is 2D") % layer.name
enable = True
- desc += " - " + _("%d primitives (%d points)") % (nprimitives, npoints)
+ desc += " - " + _("%(primitives)d primitives (%(points)d points)") % \
+ { 'primitives' : nprimitives, 'points' : npoints }
self.FindWindowById(self.win['vector']['lines']['flat']).Enable(enable)
for v in ('lines', 'points'):
More information about the grass-commit
mailing list