[GRASS-SVN] r54240 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 7 14:28:16 PST 2012


Author: martinl
Date: 2012-12-07 14:28:15 -0800 (Fri, 07 Dec 2012)
New Revision: 54240

Added:
   grass/trunk/gui/wxpython/dbmgr/Makefile
   grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.py
Log:
add missing files from r54239


Added: grass/trunk/gui/wxpython/dbmgr/Makefile
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/Makefile	                        (rev 0)
+++ grass/trunk/gui/wxpython/dbmgr/Makefile	2012-12-07 22:28:15 UTC (rev 54240)
@@ -0,0 +1,5 @@
+MODULE_TOPDIR = ../../..
+
+include $(MODULE_TOPDIR)/include/Make/GuiScript.make
+
+default: guiscript


Property changes on: grass/trunk/gui/wxpython/dbmgr/Makefile
___________________________________________________________________
Added: svn:mime-type
   + text/x-makefile
Added: svn:eol-style
   + native

Added: grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.py	                        (rev 0)
+++ grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.py	2012-12-07 22:28:15 UTC (rev 54240)
@@ -0,0 +1,59 @@
+#!/usr/bin/env python
+############################################################################
+#
+# MODULE:    g.gui.dbmgr
+# AUTHOR(S): Martin Landa <landa.martin gmail.com>
+# PURPOSE:   Attribute Table Manager
+# COPYRIGHT: (C) 2012 by Martin Landa, and the GRASS Development Team
+#
+#  This program is free software; you can 1redistribute it and/or
+#  modify it under the terms of the GNU General Public License as
+#  published by the Free Software Foundation; either version 2 of the
+#  License, or (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful, but
+#  WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#  General Public License for more details.
+#
+############################################################################
+
+#%module
+#% description: Launches graphical attribute table manager.
+#% keywords: general
+#% keywords: gui
+#% keywords: attribute table
+#% keywords: database
+#%end
+#%option G_OPT_V_MAP
+#%end
+
+import os
+import sys
+
+import  wx
+import gettext
+
+import grass.script as grass
+
+sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "gui", "wxpython"))
+
+from dbmgr.manager import AttributeManager
+
+def main():
+    gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode = True)
+    # some applications might require image handlers
+    wx.InitAllImageHandlers()
+    
+    app = wx.PySimpleApp()
+    f = AttributeManager(parent = None, id = wx.ID_ANY,
+                         title = "%s - <%s>" % (_("GRASS GIS Attribute Table Manager"),
+                                              options['map']),
+                         size = (900, 600), vectorName = options['map'])
+    f.Show()
+    
+    app.MainLoop()
+    
+if __name__ == "__main__":
+    options, flags = grass.parser()
+    main()


Property changes on: grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.py
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mime-type
   + text/x-python
Added: svn:eol-style
   + native



More information about the grass-commit mailing list