eric7/Documentation/Source/eric7.MicroPython.ConnectionSelectionDialog.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.MicroPython.ConnectionSelectionDialog</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.MicroPython.ConnectionSelectionDialog</h1>
24
25 <p>
26 Module implementing a dialog to select the port to connect to and the type of
27 the attached device.
28 </p>
29 <h3>Global Attributes</h3>
30
31 <table>
32 <tr><td>None</td></tr>
33 </table>
34 <h3>Classes</h3>
35
36 <table>
37
38 <tr>
39 <td><a href="#ConnectionSelectionDialog">ConnectionSelectionDialog</a></td>
40 <td>Class implementing a dialog to select the port to connect to and the type of the attached device.</td>
41 </tr>
42 </table>
43 <h3>Functions</h3>
44
45 <table>
46 <tr><td>None</td></tr>
47 </table>
48 <hr />
49 <hr />
50 <a NAME="ConnectionSelectionDialog" ID="ConnectionSelectionDialog"></a>
51 <h2>ConnectionSelectionDialog</h2>
52
53 <p>
54 Class implementing a dialog to select the port to connect to and the type
55 of the attached device.
56 </p>
57 <h3>Derived from</h3>
58 QDialog, Ui_ConnectionSelectionDialog
59 <h3>Class Attributes</h3>
60
61 <table>
62 <tr><td>PortNameRole</td></tr><tr><td>VidPidRole</td></tr>
63 </table>
64 <h3>Class Methods</h3>
65
66 <table>
67 <tr><td>None</td></tr>
68 </table>
69 <h3>Methods</h3>
70
71 <table>
72
73 <tr>
74 <td><a href="#ConnectionSelectionDialog.__init__">ConnectionSelectionDialog</a></td>
75 <td>Constructor</td>
76 </tr>
77 <tr>
78 <td><a href="#ConnectionSelectionDialog.__updateOK">__updateOK</a></td>
79 <td>Private method to update the status of the OK button.</td>
80 </tr>
81 <tr>
82 <td><a href="#ConnectionSelectionDialog.getData">getData</a></td>
83 <td>Public method to get the entered data.</td>
84 </tr>
85 <tr>
86 <td><a href="#ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged">on_deviceTypeComboBox_currentTextChanged</a></td>
87 <td>Private slot to handle the selection of a device type.</td>
88 </tr>
89 <tr>
90 <td><a href="#ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged">on_portNameComboBox_currentTextChanged</a></td>
91 <td>Private slot to handle the selection of a port name.</td>
92 </tr>
93 </table>
94 <h3>Static Methods</h3>
95
96 <table>
97 <tr><td>None</td></tr>
98 </table>
99
100 <a NAME="ConnectionSelectionDialog.__init__" ID="ConnectionSelectionDialog.__init__"></a>
101 <h4>ConnectionSelectionDialog (Constructor)</h4>
102 <b>ConnectionSelectionDialog</b>(<i>ports, currentPort, currentType, parent=None</i>)
103
104 <p>
105 Constructor
106 </p>
107 <dl>
108
109 <dt><i>ports</i> (list of str)</dt>
110 <dd>
111 list of detected ports
112 </dd>
113 <dt><i>currentPort</i> (str)</dt>
114 <dd>
115 port most recently selected
116 </dd>
117 <dt><i>currentType</i> (str)</dt>
118 <dd>
119 device type most recently selected
120 </dd>
121 <dt><i>parent</i> (QWidget (optional))</dt>
122 <dd>
123 reference to the parent widget (defaults to None)
124 </dd>
125 </dl>
126 <a NAME="ConnectionSelectionDialog.__updateOK" ID="ConnectionSelectionDialog.__updateOK"></a>
127 <h4>ConnectionSelectionDialog.__updateOK</h4>
128 <b>__updateOK</b>(<i></i>)
129
130 <p>
131 Private method to update the status of the OK button.
132 </p>
133 <a NAME="ConnectionSelectionDialog.getData" ID="ConnectionSelectionDialog.getData"></a>
134 <h4>ConnectionSelectionDialog.getData</h4>
135 <b>getData</b>(<i></i>)
136
137 <p>
138 Public method to get the entered data.
139 </p>
140 <dl>
141 <dt>Return:</dt>
142 <dd>
143 tuple containing the VID, PID and name of the selected port
144 and the selected device type
145 </dd>
146 </dl>
147 <dl>
148 <dt>Return Type:</dt>
149 <dd>
150 tuple of (int, int, str, str)
151 </dd>
152 </dl>
153 <a NAME="ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged" ID="ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged"></a>
154 <h4>ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged</h4>
155 <b>on_deviceTypeComboBox_currentTextChanged</b>(<i>txt</i>)
156
157 <p>
158 Private slot to handle the selection of a device type.
159 </p>
160 <dl>
161
162 <dt><i>txt</i> (str)</dt>
163 <dd>
164 selected device description
165 </dd>
166 </dl>
167 <a NAME="ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged" ID="ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged"></a>
168 <h4>ConnectionSelectionDialog.on_portNameComboBox_currentTextChanged</h4>
169 <b>on_portNameComboBox_currentTextChanged</b>(<i>txt</i>)
170
171 <p>
172 Private slot to handle the selection of a port name.
173 </p>
174 <dl>
175
176 <dt><i>txt</i> (str)</dt>
177 <dd>
178 selected port
179 </dd>
180 </dl>
181 <div align="right"><a href="#top">Up</a></div>
182 <hr />
183 </body></html>

eric ide

mercurial