57 @param password password to be checked (string) |
57 @param password password to be checked (string) |
58 """ |
58 """ |
59 strength = PasswordChecker().checkPassword(password) |
59 strength = PasswordChecker().checkPassword(password) |
60 self.setStyleSheet(self.__styleSheetTemplate.format( |
60 self.setStyleSheet(self.__styleSheetTemplate.format( |
61 self.__indicatorColors[strength])) |
61 self.__indicatorColors[strength])) |
62 super(E5PasswordMeter, self).setValue((strength + 1) * self.__increment) |
62 super(E5PasswordMeter, self).setValue( |
|
63 (strength + 1) * self.__increment) |
63 |
64 |
64 def setValue(self, value): |
65 def setValue(self, value): |
65 """ |
66 """ |
66 Public method to set the value. |
67 Public method to set the value. |
67 |
68 |