[GRASS-SVN] r64885 - grass-addons/grass7/gui/wxpython/wx.mwprecip

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 18 13:42:55 PDT 2015


Author: martinl
Date: 2015-03-18 13:42:55 -0700 (Wed, 18 Mar 2015)
New Revision: 64885

Added:
   grass-addons/grass7/gui/wxpython/wx.mwprecip/Makefile
Modified:
   grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.html
   grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
   grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
   grass-addons/grass7/gui/wxpython/wx.mwprecip/mw_util.py
   grass-addons/grass7/gui/wxpython/wx.mwprecip/pgwrapper.py
   grass-addons/grass7/gui/wxpython/wx.mwprecip/wx.mwprecip.py
Log:
g.gui.mwprecip: Makefile added (work in progress)
                set svn props


Added: grass-addons/grass7/gui/wxpython/wx.mwprecip/Makefile
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/Makefile	                        (rev 0)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/Makefile	2015-03-18 20:42:55 UTC (rev 64885)
@@ -0,0 +1,10 @@
+MODULE_TOPDIR = ../..
+
+PGM= g.gui.mwprecip
+
+ETCFILES = mw3 mw_util pgwrapper wx.mwprecip
+
+include $(MODULE_TOPDIR)/include/Make/Script.make
+include $(MODULE_TOPDIR)/include/Make/Python.make
+
+default: script


Property changes on: grass-addons/grass7/gui/wxpython/wx.mwprecip/Makefile
___________________________________________________________________
Added: svn:mime-type
   + text/x-makefile
Added: svn:eol-style
   + native


Property changes on: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.html
___________________________________________________________________
Added: svn:mime-type
   + text/html
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native

Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py	2015-03-18 20:31:31 UTC (rev 64884)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py	2015-03-18 20:42:55 UTC (rev 64885)
@@ -1,6 +1,11 @@
 #!/usr/bin/env python
 
+import os
+import sys
 
+from grass.script import core as grass
+
+sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'g.gui.mwprecip'))
 from mw_util import *
 from core.gcmd import GMessage, GError
 
@@ -1148,10 +1153,15 @@
         self.SetTopWindow(frame)
         return True
 
+def main():
+    grass.set_raise_on_error(False)
 
-app = MyApp(0)  # Create an instance of the application class
-app.MainLoop()  # Tell it to start processing events
+    options, flags = grass.parser()
 
+    app = MyApp(0)  # Create an instance of the application class
+    app.MainLoop()  # Tell it to start processing events
 
+if __name__ == "__main__":
+    main()
 
 


Property changes on: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
___________________________________________________________________
Added: svn:mime-type
   + text/x-python
Added: svn:eol-style
   + native


Property changes on: grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
___________________________________________________________________
Added: svn:mime-type
   + text/x-python
Added: svn:eol-style
   + native


Property changes on: grass-addons/grass7/gui/wxpython/wx.mwprecip/mw_util.py
___________________________________________________________________
Added: svn:mime-type
   + text/x-python
Added: svn:eol-style
   + native


Property changes on: grass-addons/grass7/gui/wxpython/wx.mwprecip/pgwrapper.py
___________________________________________________________________
Added: svn:mime-type
   + text/x-python
Added: svn:eol-style
   + native


Property changes on: grass-addons/grass7/gui/wxpython/wx.mwprecip/wx.mwprecip.py
___________________________________________________________________
Added: svn:mime-type
   + text/x-python
Added: svn:eol-style
   + native



More information about the grass-commit mailing list