|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.EricWidgets.EricComboSelectionDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.EricWidgets.EricComboSelectionDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to select one entry from a list of strings. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#EricComboSelectionDialog">EricComboSelectionDialog</a></td> |
|
25 <td>Class implementing a dialog to select one entry from a list of strings.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="EricComboSelectionDialog" ID="EricComboSelectionDialog"></a> |
|
36 <h2>EricComboSelectionDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to select one entry from a list of strings. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_E5ComboSelectionDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#EricComboSelectionDialog.__init__">EricComboSelectionDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#EricComboSelectionDialog.getSelection">getSelection</a></td> |
|
63 <td>Public method to retrieve the selected item and its data.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#EricComboSelectionDialog.on_selectionComboBox_currentTextChanged">on_selectionComboBox_currentTextChanged</a></td> |
|
67 <td>Private slot to react upon changes of the selected entry.</td> |
|
68 </tr> |
|
69 </table> |
|
70 <h3>Static Methods</h3> |
|
71 |
|
72 <table> |
|
73 <tr><td>None</td></tr> |
|
74 </table> |
|
75 |
|
76 <a NAME="EricComboSelectionDialog.__init__" ID="EricComboSelectionDialog.__init__"></a> |
|
77 <h4>EricComboSelectionDialog (Constructor)</h4> |
|
78 <b>EricComboSelectionDialog</b>(<i>entries, title="", message="", parent=None</i>) |
|
79 |
|
80 <p> |
|
81 Constructor |
|
82 </p> |
|
83 <dl> |
|
84 |
|
85 <dt><i>entries</i> (list of str or list of tuples of (str, any))</dt> |
|
86 <dd> |
|
87 list of entries to select from |
|
88 </dd> |
|
89 <dt><i>title</i> (str (optional))</dt> |
|
90 <dd> |
|
91 title of the dialog (defaults to "") |
|
92 </dd> |
|
93 <dt><i>message</i> (str (optional))</dt> |
|
94 <dd> |
|
95 message to be show in the dialog (defaults to "") |
|
96 </dd> |
|
97 <dt><i>parent</i> (QWidget (optional))</dt> |
|
98 <dd> |
|
99 reference to the parent widget (defaults to None) |
|
100 </dd> |
|
101 </dl> |
|
102 <a NAME="EricComboSelectionDialog.getSelection" ID="EricComboSelectionDialog.getSelection"></a> |
|
103 <h4>EricComboSelectionDialog.getSelection</h4> |
|
104 <b>getSelection</b>(<i></i>) |
|
105 |
|
106 <p> |
|
107 Public method to retrieve the selected item and its data. |
|
108 </p> |
|
109 <dl> |
|
110 <dt>Return:</dt> |
|
111 <dd> |
|
112 tuple containing the selected entry and its associated data |
|
113 </dd> |
|
114 </dl> |
|
115 <dl> |
|
116 <dt>Return Type:</dt> |
|
117 <dd> |
|
118 tuple of (str, any) |
|
119 </dd> |
|
120 </dl> |
|
121 <a NAME="EricComboSelectionDialog.on_selectionComboBox_currentTextChanged" ID="EricComboSelectionDialog.on_selectionComboBox_currentTextChanged"></a> |
|
122 <h4>EricComboSelectionDialog.on_selectionComboBox_currentTextChanged</h4> |
|
123 <b>on_selectionComboBox_currentTextChanged</b>(<i>txt</i>) |
|
124 |
|
125 <p> |
|
126 Private slot to react upon changes of the selected entry. |
|
127 </p> |
|
128 <dl> |
|
129 |
|
130 <dt><i>txt</i> (str)</dt> |
|
131 <dd> |
|
132 text of the selected entry |
|
133 </dd> |
|
134 </dl> |
|
135 <div align="right"><a href="#top">Up</a></div> |
|
136 <hr /> |
|
137 </body></html> |