src/eric7/Preferences/ConfigurationPages/MainPasswordEntryDialog.py

branch
eric7
changeset 10428
a071d4065202
parent 9971
773ad1f1ed22
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
22 22
23 def __init__(self, oldPasswordHash, parent=None): 23 def __init__(self, oldPasswordHash, parent=None):
24 """ 24 """
25 Constructor 25 Constructor
26 26
27 @param oldPasswordHash hash of the current password (string) 27 @param oldPasswordHash hash of the current password
28 @param parent reference to the parent widget (QWidget) 28 @type str
29 @param parent reference to the parent widget
30 @type QWidget
29 """ 31 """
30 super().__init__(parent) 32 super().__init__(parent)
31 self.setupUi(self) 33 self.setupUi(self)
32 34
33 self.__oldPasswordHash = oldPasswordHash 35 self.__oldPasswordHash = oldPasswordHash
77 @pyqtSlot(str) 79 @pyqtSlot(str)
78 def on_currentPasswordEdit_textChanged(self, txt): 80 def on_currentPasswordEdit_textChanged(self, txt):
79 """ 81 """
80 Private slot to handle changes of the current password. 82 Private slot to handle changes of the current password.
81 83
82 @param txt content of the edit widget (string) 84 @param txt content of the edit widget
85 @type str
83 """ 86 """
84 self.__updateUI() 87 self.__updateUI()
85 88
86 @pyqtSlot(str) 89 @pyqtSlot(str)
87 def on_newPasswordEdit_textChanged(self, txt): 90 def on_newPasswordEdit_textChanged(self, txt):
88 """ 91 """
89 Private slot to handle changes of the new password. 92 Private slot to handle changes of the new password.
90 93
91 @param txt content of the edit widget (string) 94 @param txt content of the edit widget
95 @type str
92 """ 96 """
93 self.passwordMeter.checkPasswordStrength(txt) 97 self.passwordMeter.checkPasswordStrength(txt)
94 self.__updateUI() 98 self.__updateUI()
95 99
96 @pyqtSlot(str) 100 @pyqtSlot(str)
97 def on_newPasswordAgainEdit_textChanged(self, txt): 101 def on_newPasswordAgainEdit_textChanged(self, txt):
98 """ 102 """
99 Private slot to handle changes of the new again password. 103 Private slot to handle changes of the new again password.
100 104
101 @param txt content of the edit widget (string) 105 @param txt content of the edit widget
106 @type str
102 """ 107 """
103 self.__updateUI() 108 self.__updateUI()
104 109
105 def getMainPassword(self): 110 def getMainPassword(self):
106 """ 111 """
107 Public method to get the new main password. 112 Public method to get the new main password.
108 113
109 @return new main password (string) 114 @return new main password
115 @rtype str
110 """ 116 """
111 return self.newPasswordEdit.text() 117 return self.newPasswordEdit.text()
112 118
113 def getCurrentPassword(self): 119 def getCurrentPassword(self):
114 """ 120 """
115 Public method to get the current main password. 121 Public method to get the current main password.
116 122
117 @return current main password (string) 123 @return current main password
124 @rtype str
118 """ 125 """
119 return self.currentPasswordEdit.text() 126 return self.currentPasswordEdit.text()

eric ide

mercurial