mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
changes console help in window modal
This commit is contained in:
parent
1495f659c7
commit
12375462de
@ -355,7 +355,7 @@ class PythonConsoleWidget(QWidget):
|
|||||||
sF.close()
|
sF.close()
|
||||||
|
|
||||||
def openHelp(self):
|
def openHelp(self):
|
||||||
dlg = HelpDialog(self)
|
dlg = HelpDialog()
|
||||||
dlg.exec_()
|
dlg.exec_()
|
||||||
|
|
||||||
def openSettings(self):
|
def openSettings(self):
|
||||||
|
@ -30,10 +30,11 @@ from qgis.core import QgsApplication
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
class HelpDialog(QDialog, Ui_Help):
|
class HelpDialog(QDialog, Ui_Help):
|
||||||
def __init__(self, parent):
|
def __init__(self, parent=None):
|
||||||
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