File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments