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
  • 155,156
  • 41
  • 207
  • 295
xSlart01x
  • 11
  • 2

0 Answers0