0

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()
the Tin Man
  • 158,662
  • 42
  • 215
  • 303
xSlart01x
  • 11
  • 2

0 Answers0