changed import sextante class entry according to 6173fa3

This commit is contained in:
Salvatore Larosa 2012-11-26 21:47:12 +01:00
parent 6e24c1623f
commit b54c3bf54e
2 changed files with 5 additions and 11 deletions

View File

@ -360,7 +360,6 @@ class PythonConsoleWidget(QWidget):
self.helpDlg.activateWindow()
def openSettings(self):
#options = optionsDialog()
self.options.exec_()
def prefChanged(self):

View File

@ -72,8 +72,6 @@ class PythonEdit(QsciScintilla, code.InteractiveInterpreter):
self.setCaretWidth(2)
# Set Python lexer
# Set style for Python comments (style number 1) to a fixed-width
# courier.
self.setLexers()
# Indentation
@ -130,19 +128,16 @@ class PythonEdit(QsciScintilla, code.InteractiveInterpreter):
self.setSelection(line, 4, line, selCmdLenght)
self.removeSelectedText()
if command == "iface":
"""Import QgisInterface class"""
# import QgisInterface class
self.append('from qgis.utils import iface')
elif command == "sextante":
"""Import Sextante class"""
self.append('from sextante.core.Sextante import Sextante')
elif command == "cLayer":
"""Retrieve current Layer from map camvas"""
self.append('cLayer = iface.mapCanvas().currentLayer()')
# import Sextante class
self.append('import sextante')
elif command == "qtCore":
"""Import QtCore class"""
# import QtCore class
self.append('from PyQt4.QtCore import *')
elif command == "qtGui":
"""Import QtGui class"""
# import QtGui class
self.append('from PyQt4.QtGui import *')
self.entered()
self.move_cursor_to_end()