src/eric7/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopListSelectionDialog.py

branch
eric7
changeset 10437
2f70ca07f0af
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10436:f6881d10e995 10437:2f70ca07f0af
28 parent=None, 28 parent=None,
29 ): 29 ):
30 """ 30 """
31 Constructor 31 Constructor
32 32
33 @param entries list of entries to be shown (list of string) 33 @param entries list of entries to be shown
34 @param selectedEntries list of entries to be selected (list of string 34 @type list of str
35 or string of entries separated by separator) 35 @param selectedEntries list of entries to be selected or a string with
36 @param separator separator string (string) 36 entries separated by separator
37 @param subEntries secondary list of entries (list of string) 37 @type list of str or str
38 @param separator separator string
39 @type str
40 @param subEntries secondary list of entries
41 @type list of str
38 @param allowMultiMain flag indicating to allow multiple selections for 42 @param allowMultiMain flag indicating to allow multiple selections for
39 the main entry (bool) 43 the main entry
44 @type bool
40 @param allowMultiSub flag indicating to allow multiple selections for 45 @param allowMultiSub flag indicating to allow multiple selections for
41 the sub entry (bool) 46 the sub entry
42 @param parent reference to the parent widget (QWidget) 47 @type bool
48 @param parent reference to the parent widget
49 @type QWidget
43 """ 50 """
44 super().__init__(parent) 51 super().__init__(parent)
45 self.setupUi(self) 52 self.setupUi(self)
46 53
47 if isinstance(selectedEntries, str): 54 if isinstance(selectedEntries, str):
72 def getData(self, separator=None, separatorAtEnd=False): 79 def getData(self, separator=None, separatorAtEnd=False):
73 """ 80 """
74 Public method to extract the selected entries as a list 81 Public method to extract the selected entries as a list
75 or a string. 82 or a string.
76 83
77 @param separator separator string (string) 84 @param separator separator string
78 @param separatorAtEnd flag indicating to append the separator (boolean) 85 @type str
79 @return list of selected entries (list of string) if the separator is 86 @param separatorAtEnd flag indicating to append the separator
80 None or a string with entries delimited by separator (string) 87 @type bool
88 @return list of selected entries if the separator is None or a string
89 with entries delimited by separator
90 @rtype list od str or str
81 """ 91 """
82 entries = [] 92 entries = []
83 for itm in self.entriesList.selectedItems(): 93 for itm in self.entriesList.selectedItems():
84 entries.append(itm.text()) 94 entries.append(itm.text())
85 for itm in self.subList.selectedItems(): 95 for itm in self.subList.selectedItems():

eric ide

mercurial