Running this code the time.sleep()
function is executed before the other instructions are ended. Can you tell me why?
def stopClient(self):
os.system("taskkill /F /IM Client.exe")
self.log_textbox.configure(state="normal")
self.log_textbox.insert(tk.END, "\n" + self.getTime() + " [Client]" + " Shutted Down.")
self.log_textbox.configure(state="disabled")
time.sleep(3)
self.quit()