23 @param guards list of guards to select from (list of strings) |
23 @param guards list of guards to select from (list of strings) |
24 @keyparam activeGuards list of active guards (list of strings) |
24 @keyparam activeGuards list of active guards (list of strings) |
25 @param listOnly flag indicating to only list the guards (boolean) |
25 @param listOnly flag indicating to only list the guards (boolean) |
26 @param parent reference to the parent widget (QWidget) |
26 @param parent reference to the parent widget (QWidget) |
27 """ |
27 """ |
28 QDialog.__init__(self, parent) |
28 super().__init__(parent) |
29 self.setupUi(self) |
29 self.setupUi(self) |
30 |
30 |
31 for guard in guards: |
31 for guard in guards: |
32 itm = QListWidgetItem(guard, self.guardsList) |
32 itm = QListWidgetItem(guard, self.guardsList) |
33 if activeGuards is not None and guard in activeGuards: |
33 if activeGuards is not None and guard in activeGuards: |