|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.EricWidgets.EricPasswordMeter</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.EricWidgets.EricPasswordMeter</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a custom widget indicating the strength of a password. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#EricPasswordMeter">EricPasswordMeter</a></td> |
|
25 <td>Class implementing a custom widget indicating the strength of a password.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="EricPasswordMeter" ID="EricPasswordMeter"></a> |
|
36 <h2>EricPasswordMeter</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a custom widget indicating the strength of a password. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QProgressBar |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#EricPasswordMeter.__init__">EricPasswordMeter</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#EricPasswordMeter.checkPasswordStrength">checkPasswordStrength</a></td> |
|
63 <td>Public slot to check the password strength and update the progress bar accordingly.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#EricPasswordMeter.setMaximum">setMaximum</a></td> |
|
67 <td>Public method to set the maximum value.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#EricPasswordMeter.setMinimum">setMinimum</a></td> |
|
71 <td>Public method to set the minimal value.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#EricPasswordMeter.setValue">setValue</a></td> |
|
75 <td>Public method to set the value.</td> |
|
76 </tr> |
|
77 </table> |
|
78 <h3>Static Methods</h3> |
|
79 |
|
80 <table> |
|
81 <tr><td>None</td></tr> |
|
82 </table> |
|
83 |
|
84 <a NAME="EricPasswordMeter.__init__" ID="EricPasswordMeter.__init__"></a> |
|
85 <h4>EricPasswordMeter (Constructor)</h4> |
|
86 <b>EricPasswordMeter</b>(<i>parent=None</i>) |
|
87 |
|
88 <p> |
|
89 Constructor |
|
90 </p> |
|
91 <dl> |
|
92 |
|
93 <dt><i>parent</i></dt> |
|
94 <dd> |
|
95 reference to the parent widget (QWidget) |
|
96 </dd> |
|
97 </dl> |
|
98 <a NAME="EricPasswordMeter.checkPasswordStrength" ID="EricPasswordMeter.checkPasswordStrength"></a> |
|
99 <h4>EricPasswordMeter.checkPasswordStrength</h4> |
|
100 <b>checkPasswordStrength</b>(<i>password</i>) |
|
101 |
|
102 <p> |
|
103 Public slot to check the password strength and update the |
|
104 progress bar accordingly. |
|
105 </p> |
|
106 <dl> |
|
107 |
|
108 <dt><i>password</i></dt> |
|
109 <dd> |
|
110 password to be checked (string) |
|
111 </dd> |
|
112 </dl> |
|
113 <a NAME="EricPasswordMeter.setMaximum" ID="EricPasswordMeter.setMaximum"></a> |
|
114 <h4>EricPasswordMeter.setMaximum</h4> |
|
115 <b>setMaximum</b>(<i>value</i>) |
|
116 |
|
117 <p> |
|
118 Public method to set the maximum value. |
|
119 </p> |
|
120 <p> |
|
121 Overwritten to do nothing. |
|
122 </p> |
|
123 <dl> |
|
124 |
|
125 <dt><i>value</i></dt> |
|
126 <dd> |
|
127 maximum value (integer) |
|
128 </dd> |
|
129 </dl> |
|
130 <a NAME="EricPasswordMeter.setMinimum" ID="EricPasswordMeter.setMinimum"></a> |
|
131 <h4>EricPasswordMeter.setMinimum</h4> |
|
132 <b>setMinimum</b>(<i>value</i>) |
|
133 |
|
134 <p> |
|
135 Public method to set the minimal value. |
|
136 </p> |
|
137 <p> |
|
138 Overwritten to do nothing. |
|
139 </p> |
|
140 <dl> |
|
141 |
|
142 <dt><i>value</i></dt> |
|
143 <dd> |
|
144 minimum value (integer) |
|
145 </dd> |
|
146 </dl> |
|
147 <a NAME="EricPasswordMeter.setValue" ID="EricPasswordMeter.setValue"></a> |
|
148 <h4>EricPasswordMeter.setValue</h4> |
|
149 <b>setValue</b>(<i>value</i>) |
|
150 |
|
151 <p> |
|
152 Public method to set the value. |
|
153 </p> |
|
154 <p> |
|
155 Overwritten to do nothing. |
|
156 </p> |
|
157 <dl> |
|
158 |
|
159 <dt><i>value</i></dt> |
|
160 <dd> |
|
161 value (integer) |
|
162 </dd> |
|
163 </dl> |
|
164 <div align="right"><a href="#top">Up</a></div> |
|
165 <hr /> |
|
166 </body></html> |