countsText.set("Read 0/0") self.master.after(100, self.login) When the main in and the modal login window has gone away. class Result: def __init__(self): .