5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.MicroPython.ConnectionSelectionDialog</h1> |
9 <h1>eric7.MicroPython.ConnectionSelectionDialog</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a dialog to select the port to connect to and the type of |
11 Module implementing a dialog to select the port to connect to and the type of |
13 the attached device. |
12 the attached device. |
14 </p> |
13 </p> |
|
14 |
15 <h3>Global Attributes</h3> |
15 <h3>Global Attributes</h3> |
16 |
|
17 <table> |
16 <table> |
18 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
19 </table> |
18 </table> |
|
19 |
20 <h3>Classes</h3> |
20 <h3>Classes</h3> |
21 |
|
22 <table> |
21 <table> |
23 |
|
24 <tr> |
22 <tr> |
25 <td><a href="#ConnectionSelectionDialog">ConnectionSelectionDialog</a></td> |
23 <td><a href="#ConnectionSelectionDialog">ConnectionSelectionDialog</a></td> |
26 <td>Class implementing a dialog to select the port to connect to and the type of the attached device.</td> |
24 <td>Class implementing a dialog to select the port to connect to and the type of the attached device.</td> |
27 </tr> |
25 </tr> |
28 </table> |
26 </table> |
|
27 |
29 <h3>Functions</h3> |
28 <h3>Functions</h3> |
30 |
|
31 <table> |
29 <table> |
32 <tr><td>None</td></tr> |
30 <tr><td>None</td></tr> |
33 </table> |
31 </table> |
|
32 |
34 <hr /> |
33 <hr /> |
35 <hr /> |
34 <hr /> |
36 <a NAME="ConnectionSelectionDialog" ID="ConnectionSelectionDialog"></a> |
35 <a NAME="ConnectionSelectionDialog" ID="ConnectionSelectionDialog"></a> |
37 <h2>ConnectionSelectionDialog</h2> |
36 <h2>ConnectionSelectionDialog</h2> |
38 |
|
39 <p> |
37 <p> |
40 Class implementing a dialog to select the port to connect to and the type |
38 Class implementing a dialog to select the port to connect to and the type |
41 of the attached device. |
39 of the attached device. |
42 </p> |
40 </p> |
|
41 |
43 <h3>Derived from</h3> |
42 <h3>Derived from</h3> |
44 QDialog, Ui_ConnectionSelectionDialog |
43 QDialog, Ui_ConnectionSelectionDialog |
45 <h3>Class Attributes</h3> |
44 <h3>Class Attributes</h3> |
|
45 <table> |
|
46 <tr><td>PortNameRole</td></tr> |
|
47 <tr><td>VidPidRole</td></tr> |
|
48 </table> |
46 |
49 |
47 <table> |
|
48 <tr><td>PortNameRole</td></tr><tr><td>VidPidRole</td></tr> |
|
49 </table> |
|
50 <h3>Class Methods</h3> |
50 <h3>Class Methods</h3> |
51 |
|
52 <table> |
51 <table> |
53 <tr><td>None</td></tr> |
52 <tr><td>None</td></tr> |
54 </table> |
53 </table> |
|
54 |
55 <h3>Methods</h3> |
55 <h3>Methods</h3> |
56 |
|
57 <table> |
56 <table> |
58 |
|
59 <tr> |
57 <tr> |
60 <td><a href="#ConnectionSelectionDialog.__init__">ConnectionSelectionDialog</a></td> |
58 <td><a href="#ConnectionSelectionDialog.__init__">ConnectionSelectionDialog</a></td> |
61 <td>Constructor</td> |
59 <td>Constructor</td> |
62 </tr> |
60 </tr> |
63 <tr> |
61 <tr> |
75 <tr> |
73 <tr> |
76 <td><a href="#ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged">on_portNameComboBox_currentTextChanged</a></td> |
74 <td><a href="#ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged">on_portNameComboBox_currentTextChanged</a></td> |
77 <td>Private slot to handle the selection of a port name.</td> |
75 <td>Private slot to handle the selection of a port name.</td> |
78 </tr> |
76 </tr> |
79 </table> |
77 </table> |
|
78 |
80 <h3>Static Methods</h3> |
79 <h3>Static Methods</h3> |
81 |
|
82 <table> |
80 <table> |
83 <tr><td>None</td></tr> |
81 <tr><td>None</td></tr> |
84 </table> |
82 </table> |
85 |
83 |
|
84 |
86 <a NAME="ConnectionSelectionDialog.__init__" ID="ConnectionSelectionDialog.__init__"></a> |
85 <a NAME="ConnectionSelectionDialog.__init__" ID="ConnectionSelectionDialog.__init__"></a> |
87 <h4>ConnectionSelectionDialog (Constructor)</h4> |
86 <h4>ConnectionSelectionDialog (Constructor)</h4> |
88 <b>ConnectionSelectionDialog</b>(<i>ports, currentPort, currentType, parent=None</i>) |
87 <b>ConnectionSelectionDialog</b>(<i>ports, currentPort, currentType, parent=None</i>) |
89 |
|
90 <p> |
88 <p> |
91 Constructor |
89 Constructor |
92 </p> |
90 </p> |
|
91 |
93 <dl> |
92 <dl> |
94 |
93 |
95 <dt><i>ports</i> (list of str)</dt> |
94 <dt><i>ports</i> (list of str)</dt> |
96 <dd> |
95 <dd> |
97 list of detected ports |
96 list of detected ports |
110 </dd> |
109 </dd> |
111 </dl> |
110 </dl> |
112 <a NAME="ConnectionSelectionDialog.__updateOK" ID="ConnectionSelectionDialog.__updateOK"></a> |
111 <a NAME="ConnectionSelectionDialog.__updateOK" ID="ConnectionSelectionDialog.__updateOK"></a> |
113 <h4>ConnectionSelectionDialog.__updateOK</h4> |
112 <h4>ConnectionSelectionDialog.__updateOK</h4> |
114 <b>__updateOK</b>(<i></i>) |
113 <b>__updateOK</b>(<i></i>) |
115 |
|
116 <p> |
114 <p> |
117 Private method to update the status of the OK button. |
115 Private method to update the status of the OK button. |
118 </p> |
116 </p> |
|
117 |
119 <a NAME="ConnectionSelectionDialog.getData" ID="ConnectionSelectionDialog.getData"></a> |
118 <a NAME="ConnectionSelectionDialog.getData" ID="ConnectionSelectionDialog.getData"></a> |
120 <h4>ConnectionSelectionDialog.getData</h4> |
119 <h4>ConnectionSelectionDialog.getData</h4> |
121 <b>getData</b>(<i></i>) |
120 <b>getData</b>(<i></i>) |
122 |
|
123 <p> |
121 <p> |
124 Public method to get the entered data. |
122 Public method to get the entered data. |
125 </p> |
123 </p> |
|
124 |
126 <dl> |
125 <dl> |
127 <dt>Return:</dt> |
126 <dt>Return:</dt> |
128 <dd> |
127 <dd> |
129 tuple containing the VID, PID and name of the selected port |
128 tuple containing the VID, PID and name of the selected port |
130 and the selected device type |
129 and the selected device type |
137 </dd> |
136 </dd> |
138 </dl> |
137 </dl> |
139 <a NAME="ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged" ID="ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged"></a> |
138 <a NAME="ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged" ID="ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged"></a> |
140 <h4>ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged</h4> |
139 <h4>ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged</h4> |
141 <b>on_deviceTypeComboBox_currentTextChanged</b>(<i>txt</i>) |
140 <b>on_deviceTypeComboBox_currentTextChanged</b>(<i>txt</i>) |
142 |
|
143 <p> |
141 <p> |
144 Private slot to handle the selection of a device type. |
142 Private slot to handle the selection of a device type. |
145 </p> |
143 </p> |
|
144 |
146 <dl> |
145 <dl> |
147 |
146 |
148 <dt><i>txt</i> (str)</dt> |
147 <dt><i>txt</i> (str)</dt> |
149 <dd> |
148 <dd> |
150 selected device description |
149 selected device description |
151 </dd> |
150 </dd> |
152 </dl> |
151 </dl> |
153 <a NAME="ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged" ID="ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged"></a> |
152 <a NAME="ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged" ID="ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged"></a> |
154 <h4>ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged</h4> |
153 <h4>ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged</h4> |
155 <b>on_portNameComboBox_currentTextChanged</b>(<i>txt</i>) |
154 <b>on_portNameComboBox_currentTextChanged</b>(<i>txt</i>) |
156 |
|
157 <p> |
155 <p> |
158 Private slot to handle the selection of a port name. |
156 Private slot to handle the selection of a port name. |
159 </p> |
157 </p> |
|
158 |
160 <dl> |
159 <dl> |
161 |
160 |
162 <dt><i>txt</i> (str)</dt> |
161 <dt><i>txt</i> (str)</dt> |
163 <dd> |
162 <dd> |
164 selected port |
163 selected port |