4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog for the configuration of a keyboard shortcut. |
7 Module implementing a dialog for the configuration of a keyboard shortcut. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSignal, QEvent, Qt |
12 from PyQt4.QtCore import pyqtSignal, QEvent, Qt |
11 from PyQt4.QtGui import QKeySequence, QDialog, QDialogButtonBox |
13 from PyQt4.QtGui import QKeySequence, QDialog, QDialogButtonBox |
12 |
14 |
13 from .Ui_ShortcutDialog import Ui_ShortcutDialog |
15 from .Ui_ShortcutDialog import Ui_ShortcutDialog |
28 |
30 |
29 @param parent The parent widget of this dialog. (QWidget) |
31 @param parent The parent widget of this dialog. (QWidget) |
30 @param name The name of this dialog. (string) |
32 @param name The name of this dialog. (string) |
31 @param modal Flag indicating a modal dialog. (boolean) |
33 @param modal Flag indicating a modal dialog. (boolean) |
32 """ |
34 """ |
33 super().__init__(parent) |
35 super(ShortcutDialog, self).__init__(parent) |
34 if name: |
36 if name: |
35 self.setObjectName(name) |
37 self.setObjectName(name) |
36 self.setModal(modal) |
38 self.setModal(modal) |
37 self.setupUi(self) |
39 self.setupUi(self) |
38 |
40 |