File tree 2 files changed +5
-11
lines changed
2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ def openHelp(self):
360
360
self .helpDlg .activateWindow ()
361
361
362
362
def openSettings (self ):
363
- #options = optionsDialog()
364
363
self .options .exec_ ()
365
364
366
365
def prefChanged (self ):
Original file line number Diff line number Diff line change @@ -72,8 +72,6 @@ def __init__(self, parent=None):
72
72
self .setCaretWidth (2 )
73
73
74
74
# Set Python lexer
75
- # Set style for Python comments (style number 1) to a fixed-width
76
- # courier.
77
75
self .setLexers ()
78
76
79
77
# Indentation
@@ -130,19 +128,16 @@ def commandConsole(self, command):
130
128
self .setSelection (line , 4 , line , selCmdLenght )
131
129
self .removeSelectedText ()
132
130
if command == "iface" :
133
- """Import QgisInterface class"""
131
+ # import QgisInterface class
134
132
self .append ('from qgis.utils import iface' )
135
133
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' )
141
136
elif command == "qtCore" :
142
- """Import QtCore class"""
137
+ # import QtCore class
143
138
self .append ('from PyQt4.QtCore import *' )
144
139
elif command == "qtGui" :
145
- """Import QtGui class"""
140
+ # import QtGui class
146
141
self .append ('from PyQt4.QtGui import *' )
147
142
self .entered ()
148
143
self .move_cursor_to_end ()
You can’t perform that action at this time.
0 commit comments