[GRASS-SVN] r55917 - grass/trunk/gui/wxpython/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 19 06:26:30 PDT 2013
Author: annakrat
Date: 2013-04-19 06:26:30 -0700 (Fri, 19 Apr 2013)
New Revision: 55917
Modified:
grass/trunk/gui/wxpython/modules/vclean.py
Log:
wxGUI/vclean: add main, remove unused imports
Modified: grass/trunk/gui/wxpython/modules/vclean.py
===================================================================
--- grass/trunk/gui/wxpython/modules/vclean.py 2013-04-19 13:21:37 UTC (rev 55916)
+++ grass/trunk/gui/wxpython/modules/vclean.py 2013-04-19 13:26:30 UTC (rev 55917)
@@ -15,16 +15,17 @@
"""
import os
+import sys
import wx
import wx.lib.scrolledpanel as scrolled
-from grass.script import core as grass
+if __name__ == '__main__':
+ sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "gui", "wxpython"))
from core.gcmd import RunCommand, GError
from core import globalvar
from gui_core.gselect import Select
-from core.debug import Debug
from core.settings import UserSettings
@@ -551,3 +552,9 @@
self.inmap = self.selectionInput.GetValue()
self.outmap = self.selectionOutput.GetValue()
+
+if __name__ == '__main__':
+ app = wx.App()
+ frame = VectorCleaningFrame(parent=None)
+ frame.Show()
+ app.MainLoop()
More information about the grass-commit
mailing list