[GRASS-SVN] r66044 - grass-addons/grass7/gui/wxpython/wx.mwprecip
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 27 01:33:31 PDT 2015
Author: krejcmat
Date: 2015-08-27 01:33:31 -0700 (Thu, 27 Aug 2015)
New Revision: 66044
Modified:
grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
Log:
wx.mwprecip addons: add about info
Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py 2015-08-27 08:04:06 UTC (rev 66043)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py 2015-08-27 08:33:31 UTC (rev 66044)
@@ -3,6 +3,10 @@
import os
import sys
+
+VERSION = 1.0
+
+
sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'g.gui.mwprecip'))
from mw_util import *
from mw3 import *
@@ -555,6 +559,8 @@
settMenu = wx.Menu()
databaseItem = settMenu.Append(wx.ID_ANY, 'Database', 'Set database')
geometry = settMenu.Append(wx.ID_ANY, 'Geometry', 'Create vector geometry')
+ about = settMenu.Append(wx.ID_ANY, 'About', 'About')
+
workingPath = settMenu.Append(wx.ID_ANY, 'Working Dir', 'Set working directory')
quitItem = settMenu.Append(wx.ID_EXIT, 'Quit', 'Quit application')
menubar.Append(settMenu, '&Menu')
@@ -563,6 +569,7 @@
self.Bind(wx.EVT_MENU, self.onQuit, quitItem)
self.Bind(wx.EVT_MENU, self.onSetDatabase, databaseItem)
self.Bind(wx.EVT_MENU, self.onSetWorkPath, workingPath)
+ self.Bind(wx.EVT_MENU, self.onAbout, about)
#self.Bind(wx.EVT_MENU, self.onSetBaseline, baselineItem)
self.Bind(wx.EVT_MENU, self.onSetGeometry, geometry)
@@ -606,6 +613,11 @@
self.findProject()
self.layout()
+ def onAbout(self,evt):
+ dir=os.path.dirname(os.path.realpath(__file__))
+ GMessage( "ver: %s \n %s"%(VERSION,dir))
+
+
def getMinTime(self, evt=None):
self.OnSaveSettings(toFile=False)
interface = Gui2Model(self, self.settings,self.workPath) # TODO optimalize init
@@ -1022,7 +1034,6 @@
self.connStatus = True
return self.dbConn
-
def initVectorGrass(self, type=None, name=None):
convertor = VectorLoader(self.dbConn)
if name is not None:
More information about the grass-commit
mailing list