[GRASS-SVN] r56015 - grass/trunk/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 28 04:57:07 PDT 2013
Author: annakrat
Date: 2013-04-28 04:57:07 -0700 (Sun, 28 Apr 2013)
New Revision: 56015
Modified:
grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI/psmap: add statusbar messages
Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py 2013-04-27 16:08:47 UTC (rev 56014)
+++ grass/trunk/gui/wxpython/psmap/frame.py 2013-04-28 11:57:07 UTC (rev 56015)
@@ -300,11 +300,15 @@
if ret > 0:
GMessage(parent = self,
message = _("ps2pdf exited with return code %s") % ret)
-
+ else:
+ self.SetStatusText(_('PDF generated'), 0)
except OSError, e:
GError(parent = self,
message = _("Program ps2pdf is not available. Please install it to create PDF.\n\n %s") % e)
-
+
+ elif not event.userData['temp']:
+ self.SetStatusText(_('PostScript file generated'), 0)
+
# show preview only when user doesn't want to create ps or pdf
if havePILImage and event.userData['temp'] and not event.userData['pdfname']:
RunCommand('g.region', cols = event.userData['regionOld']['cols'], rows = event.userData['regionOld']['rows'])
More information about the grass-commit
mailing list