[pyqgis-console] small fix for show/hide editor action

This commit is contained in:
Salvatore Larosa 2013-04-29 00:27:26 +02:00
parent 8565ef95d9
commit 195918293c
2 changed files with 2 additions and 3 deletions

View File

@ -379,8 +379,7 @@ class Editor(QsciScintilla):
self.parent.pc.callWidgetMessageBarEditor(msgText + str(e.args))
def hideEditor(self):
self.parent.pc.widgetEditor.hide()
self.parent.pc.listClassMethod.hide()
self.parent.pc.splitterObj.hide()
self.parent.pc.showEditorButton.setChecked(False)
def commentEditorCode(self, commentCheck):

View File

@ -214,7 +214,7 @@ class ShellOutputScintilla(QsciScintilla):
self.shell.setFocus()
def showEditor(self):
Ed = self.parent.widgetEditor
Ed = self.parent.splitterObj
if not Ed.isVisible():
Ed.show()
self.parent.showEditorButton.setChecked(True)