Skip to content

Commit

Permalink
changes console help in window modal
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Nov 13, 2012
1 parent 1495f65 commit 1237546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/console/console.py
Expand Up @@ -355,7 +355,7 @@ def saveScriptFile(self):
sF.close()

def openHelp(self):
dlg = HelpDialog(self)
dlg = HelpDialog()
dlg.exec_()

def openSettings(self):
Expand Down
5 changes: 3 additions & 2 deletions python/console/console_help.py
Expand Up @@ -30,10 +30,11 @@
import os

class HelpDialog(QDialog, Ui_Help):
def __init__(self, parent):
def __init__(self, parent=None):
QDialog.__init__(self, parent)
self.setupUi(self)


self.setWindowModality(Qt.WindowModal)
self.setWindowTitle(QCoreApplication.translate("PythonConsole","Help Python Console"))
self.setMaximumSize(530, 300)

Expand Down

0 comments on commit 1237546

Please sign in to comment.