[GRASS-SVN] r54023 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 25 02:31:20 PST 2012
Author: annakrat
Date: 2012-11-25 02:31:19 -0800 (Sun, 25 Nov 2012)
New Revision: 54023
Modified:
grass/trunk/gui/wxpython/lmgr/frame.py
grass/trunk/gui/wxpython/lmgr/toolbars.py
Log:
wxGUI/lmgr: remove unused code, imports
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2012-11-25 10:07:11 UTC (rev 54022)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2012-11-25 10:31:19 UTC (rev 54023)
@@ -52,8 +52,7 @@
from dbmgr.manager import AttributeManager
from core.workspace import ProcessWorkspaceFile, ProcessGrcFile, WriteWorkspaceFile
from core.gconsole import GConsole, \
- EVT_CMD_OUTPUT, EVT_CMD_RUN, EVT_CMD_DONE, \
- EVT_IGNORED_CMD_RUN, EVT_IMPORTANT_CMD_RUN
+ EVT_CMD_OUTPUT, EVT_IGNORED_CMD_RUN, EVT_IMPORTANT_CMD_RUN
from gui_core.goutput import GConsoleWindow, EVT_GC_CONTENT_CHANGED, GC_SEARCH, GC_PROMPT
from gui_core.dialogs import GdalOutputDialog, DxfImportDialog, GdalImportDialog, MapLayersDialog
from gui_core.dialogs import EVT_APPLY_MAP_LAYERS
@@ -470,7 +469,7 @@
self.model = Model()
self.model.LoadModel(filename)
- self.model.Run(log = self._gconsole, onDone = self.OnDone, parent = self)
+ self.model.Run(log = self._goutput, onDone = self.OnDone, parent = self)
dlg.Destroy()
@@ -944,7 +943,6 @@
def _popupMenu(self, data):
"""!Create popup menu
"""
- point = wx.GetMousePosition()
menu = wx.Menu()
for key, handler in data:
@@ -1303,7 +1301,6 @@
def OnDisplayCloseAll(self, event = None):
"""!Close all open map display windows
"""
- displays = list()
for display in self.GetMapDisplay(onlyCurrent = False):
display.OnCloseWindow(event)
Modified: grass/trunk/gui/wxpython/lmgr/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/toolbars.py 2012-11-25 10:07:11 UTC (rev 54022)
+++ grass/trunk/gui/wxpython/lmgr/toolbars.py 2012-11-25 10:31:19 UTC (rev 54023)
@@ -22,10 +22,6 @@
@author Anna Kratochvilova <kratochanna gmail.com>
"""
-import os
-import sys
-
-from core import globalvar
from core.gcmd import RunCommand
from nviz.preferences import NvizPreferencesDialog
from gui_core.toolbars import BaseToolbar, BaseIcons
More information about the grass-commit
mailing list