29 |
29 |
30 @param parent The parent widget of this dialog. (QWidget) |
30 @param parent The parent widget of this dialog. (QWidget) |
31 @param name The name of this dialog. (string) |
31 @param name The name of this dialog. (string) |
32 @param modal Flag indicating a modal dialog. (boolean) |
32 @param modal Flag indicating a modal dialog. (boolean) |
33 """ |
33 """ |
34 super(ShortcutDialog, self).__init__(parent) |
34 super().__init__(parent) |
35 if name: |
35 if name: |
36 self.setObjectName(name) |
36 self.setObjectName(name) |
37 self.setModal(modal) |
37 self.setModal(modal) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 self.setWindowFlags(Qt.WindowType.Window) |
39 self.setWindowFlags(Qt.WindowType.Window) |