posted an update —

added system control feature. canvas2.create_text(70, textheight, anchor=NW, text=newline("Do you want to shutdown your system[y/n] : "), font="Helvetica 15 bold", fill="white") textheight += 40 button.wait_variable(var) shut = emailentry.get() if shut.strip().lower() == "y": # speak("sorry, can't shutdown system") # speak("this feature is currently turned off as application is under development") speak("closing all application") speak("shutting down your system") os.system("shutdown /s /t 1") # os.system("rundll32.exe powrprof.dll,SetSuspendState 0,1,0") break else: speak("discarding shutdown decision") time.sleep(5)

Log in or sign up for Devpost to join the conversation.