eric6/Documentation/Source/eric6.MicroPython.ConnectionSelectionDialog.html

changeset 8134
a5c4ac339f2a
child 8139
418c2d9a767d
equal deleted inserted replaced
8133:4d1d1c248f79 8134:a5c4ac339f2a
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.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>eric6.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 </table>
90 <h3>Static Methods</h3>
91
92 <table>
93 <tr><td>None</td></tr>
94 </table>
95
96 <a NAME="ConnectionSelectionDialog.__init__" ID="ConnectionSelectionDialog.__init__"></a>
97 <h4>ConnectionSelectionDialog (Constructor)</h4>
98 <b>ConnectionSelectionDialog</b>(<i>ports, currentPort, currentType, parent=None</i>)
99
100 <p>
101 Constructor
102 </p>
103 <dl>
104
105 <dt><i>ports</i> (list of str)</dt>
106 <dd>
107 list of detected ports
108 </dd>
109 <dt><i>currentPort</i> (str)</dt>
110 <dd>
111 port most recently selected
112 </dd>
113 <dt><i>currentType</i> (str)</dt>
114 <dd>
115 device type most recently selected
116 </dd>
117 <dt><i>parent</i> (QWidget (optional))</dt>
118 <dd>
119 reference to the parent widget (defaults to None)
120 </dd>
121 </dl>
122 <a NAME="ConnectionSelectionDialog.__updateOK" ID="ConnectionSelectionDialog.__updateOK"></a>
123 <h4>ConnectionSelectionDialog.__updateOK</h4>
124 <b>__updateOK</b>(<i></i>)
125
126 <p>
127 Private method to update the status of the OK button.
128 </p>
129 <a NAME="ConnectionSelectionDialog.getData" ID="ConnectionSelectionDialog.getData"></a>
130 <h4>ConnectionSelectionDialog.getData</h4>
131 <b>getData</b>(<i></i>)
132
133 <p>
134 Public method to get the entered data.
135 </p>
136 <dl>
137 <dt>Return:</dt>
138 <dd>
139 tuple containing the VID, PID and name of the selected port
140 and the selected device type
141 </dd>
142 </dl>
143 <dl>
144 <dt>Return Type:</dt>
145 <dd>
146 tuple of (int, int, str, str)
147 </dd>
148 </dl>
149 <a NAME="ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged" ID="ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged"></a>
150 <h4>ConnectionSelectionDialog.on_deviceTypeComboBox_currentTextChanged</h4>
151 <b>on_deviceTypeComboBox_currentTextChanged</b>(<i>txt</i>)
152
153 <p>
154 Private slot to handle the selection of a device type.
155 </p>
156 <dl>
157
158 <dt><i>txt</i> (str)</dt>
159 <dd>
160 selected device description
161 </dd>
162 </dl>
163 <div align="right"><a href="#top">Up</a></div>
164 <hr />
165 </body></html>

eric ide

mercurial