7 Module implementing a dialog to show help about rope. |
7 Module implementing a dialog to show help about rope. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
|
12 from PyQt5.QtCore import Qt |
12 from PyQt5.QtGui import QTextDocument, QTextCursor |
13 from PyQt5.QtGui import QTextDocument, QTextCursor |
13 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
14 |
15 |
15 from Ui_HelpDialog import Ui_HelpDialog |
16 from Ui_HelpDialog import Ui_HelpDialog |
16 |
17 |
29 @param helpfile filename of the helpfile (string) |
30 @param helpfile filename of the helpfile (string) |
30 @param parent reference to the parent widget (QWidget) |
31 @param parent reference to the parent widget (QWidget) |
31 """ |
32 """ |
32 QDialog.__init__(self, parent) |
33 QDialog.__init__(self, parent) |
33 self.setupUi(self) |
34 self.setupUi(self) |
|
35 self.setWindowFlags(Qt.Window) |
34 |
36 |
35 self.searchButton = self.buttonBox.addButton( |
37 self.searchButton = self.buttonBox.addButton( |
36 self.tr("Search..."), QDialogButtonBox.ActionRole) |
38 self.tr("Search..."), QDialogButtonBox.ActionRole) |
37 self.__searchDlg = None |
39 self.__searchDlg = None |
38 |
40 |