mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #330 from slarosa/master
minor fix for python console
This commit is contained in:
commit
2ddc7534f6
Binary file not shown.
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 516 B |
@ -91,6 +91,7 @@ class PythonConsoleWidget(QWidget):
|
||||
#self.widgetEditors = QWidget()
|
||||
|
||||
self.options = optionsDialog(self)
|
||||
self.helpDlg = HelpDialog(self)
|
||||
|
||||
self.splitter = QSplitter(self)
|
||||
self.splitter.setOrientation(Qt.Vertical)
|
||||
@ -355,9 +356,9 @@ class PythonConsoleWidget(QWidget):
|
||||
sF.close()
|
||||
|
||||
def openHelp(self):
|
||||
dlg = HelpDialog()
|
||||
dlg.exec_()
|
||||
|
||||
self.helpDlg.show()
|
||||
self.helpDlg.activateWindow()
|
||||
|
||||
def openSettings(self):
|
||||
#options = optionsDialog()
|
||||
self.options.exec_()
|
||||
|
@ -30,11 +30,10 @@ from qgis.core import QgsApplication
|
||||
import os
|
||||
|
||||
class HelpDialog(QDialog, Ui_Help):
|
||||
def __init__(self, parent=None):
|
||||
def __init__(self, parent):
|
||||
QDialog.__init__(self, parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.setWindowModality(Qt.WindowModal)
|
||||
self.setWindowTitle(QCoreApplication.translate("PythonConsole","Help Python Console"))
|
||||
self.setMaximumSize(530, 300)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user