20 |
20 |
21 def __init__(self, subrepositories, parent=None): |
21 def __init__(self, subrepositories, parent=None): |
22 """ |
22 """ |
23 Constructor |
23 Constructor |
24 |
24 |
25 @param subrepositories list of sub-repository entries (list of strings) |
25 @param subrepositories list of sub-repository entries |
26 @param parent reference to the parent widget (QWidget) |
26 @type list of str |
|
27 @param parent reference to the parent widget |
|
28 @type QWidget |
27 """ |
29 """ |
28 super().__init__(parent) |
30 super().__init__(parent) |
29 self.setupUi(self) |
31 self.setupUi(self) |
30 |
32 |
31 self.subrepositories.addItems(subrepositories) |
33 self.subrepositories.addItems(subrepositories) |
52 def getData(self): |
54 def getData(self): |
53 """ |
55 """ |
54 Public method to retrieve the data. |
56 Public method to retrieve the data. |
55 |
57 |
56 @return tuple giving the remaining sub-repositories, the removed ones |
58 @return tuple giving the remaining sub-repositories, the removed ones |
57 and a flag indicating to delete the removed ones from disc (list |
59 and a flag indicating to delete the removed ones from disc |
58 of strings, list of strings, boolean) |
60 @rtype tuple of (list of str, list of str, bool) |
59 """ |
61 """ |
60 return ( |
62 return ( |
61 [ |
63 [ |
62 self.subrepositories.item(row).text() |
64 self.subrepositories.item(row).text() |
63 for row in range(self.subrepositories.count()) |
65 for row in range(self.subrepositories.count()) |