def initialize_master_password(self): password1 = ask_password('set master password:'******'retype master password:') if password1 is None or password2 is None: raise Cancel("The dialog was canceled.") if password1 == password2: self.password = password1 else: self.initialize_master_password()
def open_ask_dialog(self): return ask_password('master password:')