I am writing this function in python with the Tkinter module.
I want the user to enter the password when he/she presses show
. But I only want to ask the user to enter a password if the last password was asked 15 minutes ago.
def show(self):
if self.showButton['text'] == "hide":
self.showButton['text'] = "show"
self.password_text_label.grid_forget()
self.password_display_label.grid(row=6 + self.count, column=2, sticky=E, padx=5)
else:
popupWindow(root) # this will ask for master-password if you want to see the password (Another Layer of security)
self.showButton['text'] = "hide"
self.password_display_label.grid_forget()
self.password_text_label.grid(row=6 + self.count, column=2, sticky=E, padx=5)