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.WifiDialogs.WifiConnectionDialog</h1> |
9 <h1>eric7.MicroPython.WifiDialogs.WifiConnectionDialog</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a dialog to enter the parameters needed to connect to a WiFi |
11 Module implementing a dialog to enter the parameters needed to connect to a WiFi |
13 network. |
12 network. |
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="#WifiConnectionDialog">WifiConnectionDialog</a></td> |
23 <td><a href="#WifiConnectionDialog">WifiConnectionDialog</a></td> |
26 <td>Class implementing a dialog to enter the parameters needed to connect to a WiFi network.</td> |
24 <td>Class implementing a dialog to enter the parameters needed to connect to a WiFi network.</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="WifiConnectionDialog" ID="WifiConnectionDialog"></a> |
35 <a NAME="WifiConnectionDialog" ID="WifiConnectionDialog"></a> |
37 <h2>WifiConnectionDialog</h2> |
36 <h2>WifiConnectionDialog</h2> |
38 |
|
39 <p> |
37 <p> |
40 Class implementing a dialog to enter the parameters needed to connect to a WiFi |
38 Class implementing a dialog to enter the parameters needed to connect to a WiFi |
41 network. |
39 network. |
42 </p> |
40 </p> |
|
41 |
43 <h3>Derived from</h3> |
42 <h3>Derived from</h3> |
44 QDialog, Ui_WifiConnectionDialog |
43 QDialog, Ui_WifiConnectionDialog |
45 <h3>Class Attributes</h3> |
44 <h3>Class Attributes</h3> |
46 |
|
47 <table> |
45 <table> |
48 <tr><td>None</td></tr> |
46 <tr><td>None</td></tr> |
49 </table> |
47 </table> |
|
48 |
50 <h3>Class Methods</h3> |
49 <h3>Class Methods</h3> |
51 |
|
52 <table> |
50 <table> |
53 <tr><td>None</td></tr> |
51 <tr><td>None</td></tr> |
54 </table> |
52 </table> |
|
53 |
55 <h3>Methods</h3> |
54 <h3>Methods</h3> |
56 |
|
57 <table> |
55 <table> |
58 |
|
59 <tr> |
56 <tr> |
60 <td><a href="#WifiConnectionDialog.__init__">WifiConnectionDialog</a></td> |
57 <td><a href="#WifiConnectionDialog.__init__">WifiConnectionDialog</a></td> |
61 <td>Constructor</td> |
58 <td>Constructor</td> |
62 </tr> |
59 </tr> |
63 <tr> |
60 <tr> |
79 <tr> |
76 <tr> |
80 <td><a href="#WifiConnectionDialog.on_ssidEdit_textChanged">on_ssidEdit_textChanged</a></td> |
77 <td><a href="#WifiConnectionDialog.on_ssidEdit_textChanged">on_ssidEdit_textChanged</a></td> |
81 <td>Private slot handling a change of the SSID.</td> |
78 <td>Private slot handling a change of the SSID.</td> |
82 </tr> |
79 </tr> |
83 </table> |
80 </table> |
|
81 |
84 <h3>Static Methods</h3> |
82 <h3>Static Methods</h3> |
85 |
|
86 <table> |
83 <table> |
87 <tr><td>None</td></tr> |
84 <tr><td>None</td></tr> |
88 </table> |
85 </table> |
89 |
86 |
|
87 |
90 <a NAME="WifiConnectionDialog.__init__" ID="WifiConnectionDialog.__init__"></a> |
88 <a NAME="WifiConnectionDialog.__init__" ID="WifiConnectionDialog.__init__"></a> |
91 <h4>WifiConnectionDialog (Constructor)</h4> |
89 <h4>WifiConnectionDialog (Constructor)</h4> |
92 <b>WifiConnectionDialog</b>(<i>withCountry=False, parent=None</i>) |
90 <b>WifiConnectionDialog</b>(<i>withCountry=False, parent=None</i>) |
93 |
|
94 <p> |
91 <p> |
95 Constructor |
92 Constructor |
96 </p> |
93 </p> |
|
94 |
97 <dl> |
95 <dl> |
98 |
96 |
99 <dt><i>withCountry</i> (bool)</dt> |
97 <dt><i>withCountry</i> (bool)</dt> |
100 <dd> |
98 <dd> |
101 flag indicating to show the country entry (defaults to False) |
99 flag indicating to show the country entry (defaults to False) |
106 </dd> |
104 </dd> |
107 </dl> |
105 </dl> |
108 <a NAME="WifiConnectionDialog.accept" ID="WifiConnectionDialog.accept"></a> |
106 <a NAME="WifiConnectionDialog.accept" ID="WifiConnectionDialog.accept"></a> |
109 <h4>WifiConnectionDialog.accept</h4> |
107 <h4>WifiConnectionDialog.accept</h4> |
110 <b>accept</b>(<i></i>) |
108 <b>accept</b>(<i></i>) |
111 |
|
112 <p> |
109 <p> |
113 Public slot accepting the dialog. |
110 Public slot accepting the dialog. |
114 </p> |
111 </p> |
|
112 |
115 <a NAME="WifiConnectionDialog.getConnectionParameters" ID="WifiConnectionDialog.getConnectionParameters"></a> |
113 <a NAME="WifiConnectionDialog.getConnectionParameters" ID="WifiConnectionDialog.getConnectionParameters"></a> |
116 <h4>WifiConnectionDialog.getConnectionParameters</h4> |
114 <h4>WifiConnectionDialog.getConnectionParameters</h4> |
117 <b>getConnectionParameters</b>(<i></i>) |
115 <b>getConnectionParameters</b>(<i></i>) |
118 |
|
119 <p> |
116 <p> |
120 Public method to get the entered connection parameters. |
117 Public method to get the entered connection parameters. |
121 </p> |
118 </p> |
|
119 |
122 <dl> |
120 <dl> |
123 <dt>Return:</dt> |
121 <dt>Return:</dt> |
124 <dd> |
122 <dd> |
125 tuple containing the SSID, the password and the host name |
123 tuple containing the SSID, the password and the host name |
126 </dd> |
124 </dd> |
151 </dd> |
149 </dd> |
152 </dl> |
150 </dl> |
153 <a NAME="WifiConnectionDialog.on_showPasswordButton_clicked" ID="WifiConnectionDialog.on_showPasswordButton_clicked"></a> |
151 <a NAME="WifiConnectionDialog.on_showPasswordButton_clicked" ID="WifiConnectionDialog.on_showPasswordButton_clicked"></a> |
154 <h4>WifiConnectionDialog.on_showPasswordButton_clicked</h4> |
152 <h4>WifiConnectionDialog.on_showPasswordButton_clicked</h4> |
155 <b>on_showPasswordButton_clicked</b>(<i>checked</i>) |
153 <b>on_showPasswordButton_clicked</b>(<i>checked</i>) |
156 |
|
157 <p> |
154 <p> |
158 Private slot to show or hide the password. |
155 Private slot to show or hide the password. |
159 </p> |
156 </p> |
|
157 |
160 <dl> |
158 <dl> |
161 |
159 |
162 <dt><i>checked</i> (bool)</dt> |
160 <dt><i>checked</i> (bool)</dt> |
163 <dd> |
161 <dd> |
164 state of the button |
162 state of the button |
165 </dd> |
163 </dd> |
166 </dl> |
164 </dl> |
167 <a NAME="WifiConnectionDialog.on_ssidEdit_textChanged" ID="WifiConnectionDialog.on_ssidEdit_textChanged"></a> |
165 <a NAME="WifiConnectionDialog.on_ssidEdit_textChanged" ID="WifiConnectionDialog.on_ssidEdit_textChanged"></a> |
168 <h4>WifiConnectionDialog.on_ssidEdit_textChanged</h4> |
166 <h4>WifiConnectionDialog.on_ssidEdit_textChanged</h4> |
169 <b>on_ssidEdit_textChanged</b>(<i>ssid</i>) |
167 <b>on_ssidEdit_textChanged</b>(<i>ssid</i>) |
170 |
|
171 <p> |
168 <p> |
172 Private slot handling a change of the SSID. |
169 Private slot handling a change of the SSID. |
173 </p> |
170 </p> |
|
171 |
174 <dl> |
172 <dl> |
175 |
173 |
176 <dt><i>ssid</i> (str)</dt> |
174 <dt><i>ssid</i> (str)</dt> |
177 <dd> |
175 <dd> |
178 entered SSID |
176 entered SSID |