[GRASS-SVN] r61620 - grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 14 06:06:53 PDT 2014


Author: martinl
Date: 2014-08-14 06:06:53 -0700 (Thu, 14 Aug 2014)
New Revision: 61620

Modified:
   grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py
Log:
wx.metadata: define basic interface for g.gui.metadata

Modified: grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py	2014-08-14 12:58:37 UTC (rev 61619)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py	2014-08-14 13:06:53 UTC (rev 61620)
@@ -21,6 +21,13 @@
 @author Matej Krejci <matejkrejci gmail.com> (GSoC 2014)
 """
 
+#%module
+#% description: Tool for creating and modifying map's metadata.
+#% keywords: general
+#% keywords: GUI
+#% keywords: metadata
+#%end
+
 import os
 import sys
 import glob
@@ -39,6 +46,7 @@
 import mdgrass
 import mdutil
 
+from core.utils import _, GuiModuleMain
 from editor import MdMainEditor
 from lmgr import datacatalog
 from core.gcmd import RunCommand, GError, GMessage
@@ -1153,7 +1161,12 @@
         self.mainsizer.Add(self.toolbar)
 
 #----------------------------------------------------------------------
-if __name__ == "__main__":
+def main():
     app = wx.App(False)
     frame = MdMainFrame()
     app.MainLoop()
+
+if __name__ == '__main__':
+    options, flags = grass.parser()
+
+    GuiModuleMain(main)



More information about the grass-commit mailing list