mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
minor fix for console help dialog
This commit is contained in:
parent
845edd90e8
commit
4f9e8c289c
@ -91,6 +91,7 @@ class PythonConsoleWidget(QWidget):
|
|||||||
#self.widgetEditors = QWidget()
|
#self.widgetEditors = QWidget()
|
||||||
|
|
||||||
self.options = optionsDialog(self)
|
self.options = optionsDialog(self)
|
||||||
|
self.helpDlg = HelpDialog(self)
|
||||||
|
|
||||||
self.splitter = QSplitter(self)
|
self.splitter = QSplitter(self)
|
||||||
self.splitter.setOrientation(Qt.Vertical)
|
self.splitter.setOrientation(Qt.Vertical)
|
||||||
@ -355,9 +356,9 @@ class PythonConsoleWidget(QWidget):
|
|||||||
sF.close()
|
sF.close()
|
||||||
|
|
||||||
def openHelp(self):
|
def openHelp(self):
|
||||||
dlg = HelpDialog()
|
self.helpDlg.show()
|
||||||
dlg.exec_()
|
self.helpDlg.activateWindow()
|
||||||
|
|
||||||
def openSettings(self):
|
def openSettings(self):
|
||||||
#options = optionsDialog()
|
#options = optionsDialog()
|
||||||
self.options.exec_()
|
self.options.exec_()
|
||||||
|
@ -30,11 +30,10 @@ from qgis.core import QgsApplication
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
class HelpDialog(QDialog, Ui_Help):
|
class HelpDialog(QDialog, Ui_Help):
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent):
|
||||||
QDialog.__init__(self, parent)
|
QDialog.__init__(self, parent)
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
self.setWindowModality(Qt.WindowModal)
|
|
||||||
self.setWindowTitle(QCoreApplication.translate("PythonConsole","Help Python Console"))
|
self.setWindowTitle(QCoreApplication.translate("PythonConsole","Help Python Console"))
|
||||||
self.setMaximumSize(530, 300)
|
self.setMaximumSize(530, 300)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user