19 |
19 |
20 def __init__(self, taglist, reposURL, standardLayout, parent=None): |
20 def __init__(self, taglist, reposURL, standardLayout, parent=None): |
21 """ |
21 """ |
22 Constructor |
22 Constructor |
23 |
23 |
24 @param taglist list of previously entered tags (list of strings) |
24 @param taglist list of previously entered tags |
25 @param reposURL repository path (string) or None |
25 @type list of str |
26 @param standardLayout flag indicating the layout of the |
26 @param reposURL repository path or None |
27 repository (boolean) |
27 @type str |
28 @param parent parent widget (QWidget) |
28 @param standardLayout flag indicating the layout of the repository |
|
29 @type bool |
|
30 @param parent parent widget |
|
31 @type QWidget |
29 """ |
32 """ |
30 super().__init__(parent) |
33 super().__init__(parent) |
31 self.setupUi(self) |
34 self.setupUi(self) |
32 |
35 |
33 self.tagCombo.clear() |
36 self.tagCombo.clear() |
44 |
47 |
45 def getParameters(self): |
48 def getParameters(self): |
46 """ |
49 """ |
47 Public method to retrieve the tag data. |
50 Public method to retrieve the tag data. |
48 |
51 |
49 @return tuple of string and int (tag, tag type) |
52 @return tuple containing the tag and tag type) |
|
53 @rtype tuple of (str, int) |
50 """ |
54 """ |
51 tag = self.tagCombo.currentText() |
55 tag = self.tagCombo.currentText() |
52 tagType = 0 |
56 tagType = 0 |
53 if self.regularButton.isChecked(): |
57 if self.regularButton.isChecked(): |
54 tagType = 1 |
58 tagType = 1 |