Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
9800 | 1 | <!DOCTYPE html> |
2 | <html><head> | |
3 | <title>eric7.EricNetwork.EricIPv4InputWidget</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.EricNetwork.EricIPv4InputWidget</h1> | |
10 | <p> | |
11 | Module implementing a widget to enter an IPv4 address. | |
12 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
13 | |
9800 | 14 | <h3>Global Attributes</h3> |
15 | <table> | |
16 | <tr><td>None</td></tr> | |
17 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
18 | |
9800 | 19 | <h3>Classes</h3> |
20 | <table> | |
21 | <tr> | |
22 | <td><a href="#EricIPv4InputWidget">EricIPv4InputWidget</a></td> | |
23 | <td>Class implementing a widget to enter an IPv4 address.</td> | |
24 | </tr> | |
25 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
26 | |
9800 | 27 | <h3>Functions</h3> |
28 | <table> | |
29 | <tr><td>None</td></tr> | |
30 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
31 | |
9800 | 32 | <hr /> |
33 | <hr /> | |
34 | <a NAME="EricIPv4InputWidget" ID="EricIPv4InputWidget"></a> | |
35 | <h2>EricIPv4InputWidget</h2> | |
36 | <p> | |
37 | Class implementing a widget to enter an IPv4 address. | |
38 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
39 | |
9800 | 40 | <h3>Signals</h3> |
41 | <dl> | |
42 | ||
43 | <dt>addressChanged()</dt> | |
44 | <dd> | |
45 | emitted to indicate a change of the entered IPv4 address | |
46 | </dd> | |
47 | </dl> | |
48 | <h3>Derived from</h3> | |
49 | QWidget, Ui_EricIPv4InputWidget | |
50 | <h3>Class Attributes</h3> | |
51 | <table> | |
52 | <tr><td>None</td></tr> | |
53 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
54 | |
9800 | 55 | <h3>Class Methods</h3> |
56 | <table> | |
57 | <tr><td>None</td></tr> | |
58 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
59 | |
9800 | 60 | <h3>Methods</h3> |
61 | <table> | |
62 | <tr> | |
63 | <td><a href="#EricIPv4InputWidget.__init__">EricIPv4InputWidget</a></td> | |
64 | <td>Constructor</td> | |
65 | </tr> | |
66 | <tr> | |
67 | <td><a href="#EricIPv4InputWidget.__clear">__clear</a></td> | |
68 | <td>Private slot to handle the clear button press.</td> | |
69 | </tr> | |
70 | <tr> | |
71 | <td><a href="#EricIPv4InputWidget.address">address</a></td> | |
72 | <td>Public method to get the IPv4 address as an ipaddress.IPv4Address object.</td> | |
73 | </tr> | |
74 | <tr> | |
75 | <td><a href="#EricIPv4InputWidget.clear">clear</a></td> | |
76 | <td>Public slot to clear the input fields.</td> | |
77 | </tr> | |
78 | <tr> | |
79 | <td><a href="#EricIPv4InputWidget.eventFilter">eventFilter</a></td> | |
80 | <td>Public method to filter pressing '.' to give focus to the next input field.</td> | |
81 | </tr> | |
82 | <tr> | |
83 | <td><a href="#EricIPv4InputWidget.hasAcceptableInput">hasAcceptableInput</a></td> | |
84 | <td>Public method to check, if the input is acceptable.</td> | |
85 | </tr> | |
86 | <tr> | |
87 | <td><a href="#EricIPv4InputWidget.setAddress">setAddress</a></td> | |
88 | <td>Public method to set the IPv4 address given an ipaddress.IPv4Address object.</td> | |
89 | </tr> | |
90 | <tr> | |
91 | <td><a href="#EricIPv4InputWidget.setText">setText</a></td> | |
92 | <td>Public method to set the IPv4 address given a string.</td> | |
93 | </tr> | |
94 | <tr> | |
95 | <td><a href="#EricIPv4InputWidget.text">text</a></td> | |
96 | <td>Public method to get the IPv4 address as a string.</td> | |
97 | </tr> | |
98 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
99 | |
9800 | 100 | <h3>Static Methods</h3> |
101 | <table> | |
102 | <tr><td>None</td></tr> | |
103 | </table> | |
104 | ||
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
105 | |
9800 | 106 | <a NAME="EricIPv4InputWidget.__init__" ID="EricIPv4InputWidget.__init__"></a> |
107 | <h4>EricIPv4InputWidget (Constructor)</h4> | |
108 | <b>EricIPv4InputWidget</b>(<i>parent=None</i>) | |
109 | <p> | |
110 | Constructor | |
111 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
112 | |
9800 | 113 | <dl> |
114 | ||
115 | <dt><i>parent</i> (QWidget (optional))</dt> | |
116 | <dd> | |
117 | reference to the parent widget (defaults to None) | |
118 | </dd> | |
119 | </dl> | |
120 | <a NAME="EricIPv4InputWidget.__clear" ID="EricIPv4InputWidget.__clear"></a> | |
121 | <h4>EricIPv4InputWidget.__clear</h4> | |
122 | <b>__clear</b>(<i></i>) | |
123 | <p> | |
124 | Private slot to handle the clear button press. | |
125 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
126 | |
9800 | 127 | <a NAME="EricIPv4InputWidget.address" ID="EricIPv4InputWidget.address"></a> |
128 | <h4>EricIPv4InputWidget.address</h4> | |
129 | <b>address</b>(<i></i>) | |
130 | <p> | |
131 | Public method to get the IPv4 address as an ipaddress.IPv4Address object. | |
132 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
133 | |
9800 | 134 | <dl> |
135 | <dt>Return:</dt> | |
136 | <dd> | |
137 | IPv4 address | |
138 | </dd> | |
139 | </dl> | |
140 | <dl> | |
141 | <dt>Return Type:</dt> | |
142 | <dd> | |
143 | ipaddress.IPv4Address | |
144 | </dd> | |
145 | </dl> | |
9840
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
146 | <dl> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
147 | |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
148 | <dt>Raises <b>ValueError</b>:</dt> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
149 | <dd> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
150 | raised to indicate an invalid IPv4 address |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
151 | </dd> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
152 | </dl> |
9800 | 153 | <a NAME="EricIPv4InputWidget.clear" ID="EricIPv4InputWidget.clear"></a> |
154 | <h4>EricIPv4InputWidget.clear</h4> | |
155 | <b>clear</b>(<i></i>) | |
156 | <p> | |
157 | Public slot to clear the input fields. | |
158 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
159 | |
9800 | 160 | <a NAME="EricIPv4InputWidget.eventFilter" ID="EricIPv4InputWidget.eventFilter"></a> |
161 | <h4>EricIPv4InputWidget.eventFilter</h4> | |
162 | <b>eventFilter</b>(<i>obj, evt</i>) | |
163 | <p> | |
164 | Public method to filter pressing '.' to give focus to the next input field. | |
165 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
166 | |
9800 | 167 | <dl> |
168 | ||
169 | <dt><i>obj</i> (QObject)</dt> | |
170 | <dd> | |
171 | reference to the object | |
172 | </dd> | |
173 | <dt><i>evt</i> (QEvent)</dt> | |
174 | <dd> | |
175 | reference to the event object | |
176 | </dd> | |
177 | </dl> | |
9840
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
178 | <dl> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
179 | <dt>Return:</dt> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
180 | <dd> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
181 | flag indicating, that the event was handled |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
182 | </dd> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
183 | </dl> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
184 | <dl> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
185 | <dt>Return Type:</dt> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
186 | <dd> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
187 | bool |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
188 | </dd> |
d41ee69fa69b
Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9800
diff
changeset
|
189 | </dl> |
9800 | 190 | <a NAME="EricIPv4InputWidget.hasAcceptableInput" ID="EricIPv4InputWidget.hasAcceptableInput"></a> |
191 | <h4>EricIPv4InputWidget.hasAcceptableInput</h4> | |
192 | <b>hasAcceptableInput</b>(<i></i>) | |
193 | <p> | |
194 | Public method to check, if the input is acceptable. | |
195 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
196 | |
9800 | 197 | <dl> |
198 | <dt>Return:</dt> | |
199 | <dd> | |
200 | flag indicating acceptable input | |
201 | </dd> | |
202 | </dl> | |
203 | <dl> | |
204 | <dt>Return Type:</dt> | |
205 | <dd> | |
206 | bool | |
207 | </dd> | |
208 | </dl> | |
209 | <a NAME="EricIPv4InputWidget.setAddress" ID="EricIPv4InputWidget.setAddress"></a> | |
210 | <h4>EricIPv4InputWidget.setAddress</h4> | |
211 | <b>setAddress</b>(<i>address</i>) | |
212 | <p> | |
213 | Public method to set the IPv4 address given an ipaddress.IPv4Address object. | |
214 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
215 | |
9800 | 216 | <dl> |
217 | ||
218 | <dt><i>address</i> (ipaddress.IPv4Address)</dt> | |
219 | <dd> | |
220 | IPv4 address | |
221 | </dd> | |
222 | </dl> | |
10035
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
223 | <dl> |
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
224 | |
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
225 | <dt>Raises <b>ValueError</b>:</dt> |
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
226 | <dd> |
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
227 | raised to indicate an invalid IPv4 address |
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
228 | </dd> |
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
229 | </dl> |
9800 | 230 | <a NAME="EricIPv4InputWidget.setText" ID="EricIPv4InputWidget.setText"></a> |
231 | <h4>EricIPv4InputWidget.setText</h4> | |
232 | <b>setText</b>(<i>address</i>) | |
233 | <p> | |
234 | Public method to set the IPv4 address given a string. | |
235 | </p> | |
10035
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
236 | <p> |
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
237 | Note: If an invalid address is given, the input is cleared. |
3a423b723a99
Updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9840
diff
changeset
|
238 | </p> |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
239 | |
9800 | 240 | <dl> |
241 | ||
242 | <dt><i>address</i> (str)</dt> | |
243 | <dd> | |
244 | IPv4 address | |
245 | </dd> | |
246 | </dl> | |
247 | <a NAME="EricIPv4InputWidget.text" ID="EricIPv4InputWidget.text"></a> | |
248 | <h4>EricIPv4InputWidget.text</h4> | |
249 | <b>text</b>(<i></i>) | |
250 | <p> | |
251 | Public method to get the IPv4 address as a string. | |
252 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
253 | |
9800 | 254 | <dl> |
255 | <dt>Return:</dt> | |
256 | <dd> | |
257 | IPv4 address | |
258 | </dd> | |
259 | </dl> | |
260 | <dl> | |
261 | <dt>Return Type:</dt> | |
262 | <dd> | |
263 | str | |
264 | </dd> | |
265 | </dl> | |
266 | <div align="right"><a href="#top">Up</a></div> | |
267 | <hr /> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10035
diff
changeset
|
268 | </body></html> |