[GRASS-SVN] r65295 - grass/branches/releasebranch_7_0/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 20 18:29:22 PDT 2015


Author: annakrat
Date: 2015-05-20 18:29:22 -0700 (Wed, 20 May 2015)
New Revision: 65295

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/modules/mapsets_picker.py
Log:
g.mapsets: dialog must be destroyed, app.MainLoop seems not necessary here; remove unused imports, whitespace clean up (merge from trunk, r65291)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/modules/mapsets_picker.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/modules/mapsets_picker.py	2015-05-20 17:50:26 UTC (rev 65294)
+++ grass/branches/releasebranch_7_0/gui/wxpython/modules/mapsets_picker.py	2015-05-21 01:29:22 UTC (rev 65295)
@@ -1,33 +1,27 @@
 #!/usr/bin/env python
 
-import os
-import sys
-import pwd
-
-from grass.script import core as grass
-
 import wx
-import wx.lib.mixins.listctrl as listmix
 
-from core.gcmd import RunCommand 
+from core.gcmd import RunCommand
 from core.utils import _, GuiModuleMain
 from gui_core.preferences import MapsetAccess
 
+
 def main():
     app = wx.App()
 
     dlg = MapsetAccess(parent = None)
     dlg.CenterOnScreen()
-        
+
     if dlg.ShowModal() == wx.ID_OK:
         ms = dlg.GetMapsets()
         RunCommand('g.mapsets',
                    parent = None,
                    mapset = '%s' % ','.join(ms),
                    operation = 'set')
-    
-    app.MainLoop()
 
+    dlg.Destroy()
+
+
 if __name__ == "__main__":
     GuiModuleMain(main)
-



More information about the grass-commit mailing list