Skip to content

Commit bc75a39

Browse files
committed
Merge pull request #340 from slarosa/master
Changed import sextante class entry according to 6173fa3 (PyQGIS Console)
2 parents 6e24c16 + b54c3bf commit bc75a39

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

python/console/console.py

-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ def openHelp(self):
360360
self.helpDlg.activateWindow()
361361

362362
def openSettings(self):
363-
#options = optionsDialog()
364363
self.options.exec_()
365364

366365
def prefChanged(self):

python/console/console_sci.py

+5-10
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ def __init__(self, parent=None):
7272
self.setCaretWidth(2)
7373

7474
# Set Python lexer
75-
# Set style for Python comments (style number 1) to a fixed-width
76-
# courier.
7775
self.setLexers()
7876

7977
# Indentation
@@ -130,19 +128,16 @@ def commandConsole(self, command):
130128
self.setSelection(line, 4, line, selCmdLenght)
131129
self.removeSelectedText()
132130
if command == "iface":
133-
"""Import QgisInterface class"""
131+
# import QgisInterface class
134132
self.append('from qgis.utils import iface')
135133
elif command == "sextante":
136-
"""Import Sextante class"""
137-
self.append('from sextante.core.Sextante import Sextante')
138-
elif command == "cLayer":
139-
"""Retrieve current Layer from map camvas"""
140-
self.append('cLayer = iface.mapCanvas().currentLayer()')
134+
# import Sextante class
135+
self.append('import sextante')
141136
elif command == "qtCore":
142-
"""Import QtCore class"""
137+
# import QtCore class
143138
self.append('from PyQt4.QtCore import *')
144139
elif command == "qtGui":
145-
"""Import QtGui class"""
140+
# import QtGui class
146141
self.append('from PyQt4.QtGui import *')
147142
self.entered()
148143
self.move_cursor_to_end()

0 commit comments

Comments
 (0)