src/eric7/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesGuardsSelectionDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
24 24
25 def __init__(self, guards, activeGuards=None, listOnly=False, parent=None): 25 def __init__(self, guards, activeGuards=None, listOnly=False, parent=None):
26 """ 26 """
27 Constructor 27 Constructor
28 28
29 @param guards list of guards to select from (list of strings) 29 @param guards list of guards to select from
30 @param activeGuards list of active guards (list of strings) 30 @type list of str
31 @param listOnly flag indicating to only list the guards (boolean) 31 @param activeGuards list of active guards
32 @param parent reference to the parent widget (QWidget) 32 @type list of str
33 @param listOnly flag indicating to only list the guards
34 @type bool
35 @param parent reference to the parent widget
36 @type QWidget
33 """ 37 """
34 super().__init__(parent) 38 super().__init__(parent)
35 self.setupUi(self) 39 self.setupUi(self)
36 40
37 for guard in guards: 41 for guard in guards:
51 55
52 def getData(self): 56 def getData(self):
53 """ 57 """
54 Public method to retrieve the data. 58 Public method to retrieve the data.
55 59
56 @return list of selected guards (list of strings) 60 @return list of selected guards
61 @rtype list of str
57 """ 62 """
58 guardsList = [] 63 guardsList = []
59 64
60 for itm in self.guardsList.selectedItems(): 65 for itm in self.guardsList.selectedItems():
61 guardsList.append(itm.text()) 66 guardsList.append(itm.text())

eric ide

mercurial