[pyqgis-console] fix typo and indentation update

This commit is contained in:
Salvatore Larosa 2013-05-05 20:47:59 +02:00
parent 507756a7f7
commit eb47ff5d8a
5 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
# -*- coding:utf-8 -*-
"""
/***************************************************************************
Python Conosle for QGIS
Python Console for QGIS
-------------------
begin : 2012-09-10
copyright : (C) 2012 by Salvatore Larosa
@ -651,7 +651,7 @@ class PythonConsoleWidget(QWidget):
tabWidget.save()
except (IOError, OSError), e:
errTr = QCoreApplication.translate("PythonConsole", "Save Error")
msgErrTr = QCoreApplication.translate("PythonConsole",
msgErrTr = QCoreApplication.translate("PythonConsole",
"Failed to save %1: %2").arg(tabWidget.path, e)
QMessageBox.warning(self, errTr, msgErrTr)

View File

@ -1,7 +1,7 @@
# -*- coding:utf-8 -*-
"""
/***************************************************************************
Python Conosle for QGIS
Python Console for QGIS
-------------------
begin : 2012-09-10
copyright : (C) 2012 by Salvatore Larosa
@ -786,7 +786,7 @@ class EditorTabWidget(QTabWidget):
self.newTabButton.setIconSize(QSize(24, 24))
self.setCornerWidget(self.newTabButton, Qt.TopLeftCorner)
self.connect(self.newTabButton, SIGNAL('clicked()'), self.newTabEditor)
def contextMenuEvent(self, e):
tabBar = self.tabBar()
self.idx = tabBar.tabAt(e.pos())
@ -815,7 +815,7 @@ class EditorTabWidget(QTabWidget):
closeAllTabAction.setEnabled(True)
closeOthersTabAction.setEnabled(True)
action = menu.exec_(self.mapToGlobal(e.pos()))
def closeOthers(self):
idx = self.idx
countTab = self.count()

View File

@ -1,7 +1,7 @@
# -*- coding:utf-8 -*-
"""
/***************************************************************************
Python Conosle for QGIS
Python Console for QGIS
-------------------
begin : 2012-09-10
copyright : (C) 2012 by Salvatore Larosa

View File

@ -1,7 +1,7 @@
# -*- coding:utf-8 -*-
"""
/***************************************************************************
Python Conosle for QGIS
Python Console for QGIS
-------------------
begin : 2012-09-10
copyright : (C) 2012 by Salvatore Larosa

View File

@ -1,7 +1,7 @@
# -*- coding:utf-8 -*-
"""
/***************************************************************************
Python Conosle for QGIS
Python Console for QGIS
-------------------
begin : 2012-09-10
copyright : (C) 2012 by Salvatore Larosa