|
@@ -24,8 +24,6 @@ from wx.py.shell import Shell as PyShell
|
|
from wx.py.version import VERSION
|
|
from wx.py.version import VERSION
|
|
|
|
|
|
import grass.script as grass
|
|
import grass.script as grass
|
|
-import grass.pygrass as pygrass
|
|
|
|
-import grass.pygrass.modules as pgmodules
|
|
|
|
|
|
|
|
class PyShellWindow(wx.Panel):
|
|
class PyShellWindow(wx.Panel):
|
|
"""!Python Shell Window"""
|
|
"""!Python Shell Window"""
|
|
@@ -40,16 +38,6 @@ class PyShellWindow(wx.Panel):
|
|
self.shell = PyShell(parent = self, id = wx.ID_ANY,
|
|
self.shell = PyShell(parent = self, id = wx.ID_ANY,
|
|
introText = self.intro,
|
|
introText = self.intro,
|
|
locals={'grass': grass,
|
|
locals={'grass': grass,
|
|
- 'pygrass': pygrass,
|
|
|
|
- 'r': pgmodules.shortcuts.raster,
|
|
|
|
- 'r3': pgmodules.shortcuts.raster3D,
|
|
|
|
- 'v': pgmodules.shortcuts.vector,
|
|
|
|
- 'i': pgmodules.shortcuts.imagery,
|
|
|
|
- 'db': pgmodules.shortcuts.database,
|
|
|
|
- 'g': pgmodules.shortcuts.general,
|
|
|
|
- 'ps': pgmodules.shortcuts.postscript,
|
|
|
|
- 't': pgmodules.shortcuts.temporal,
|
|
|
|
- 'giface': self.parent._giface, # for experimetal reasons only
|
|
|
|
'AddLayer': self.AddLayer})
|
|
'AddLayer': self.AddLayer})
|
|
|
|
|
|
sys.displayhook = self._displayhook
|
|
sys.displayhook = self._displayhook
|