Python Flask: Getting An Error When Server Shutdown Is Declined
I am a newbie at FLask. I am building an app which uses Flask as framework. the app and server is supposed to work only on localhost. When exiting the app I also want to shutdown t
Solution 1:
You need to destroy the Tk()
instance after closing the messagebox:
def dialog_yn(title="mesage Box", prompt="Make your choice"):
root = Tk()
root.withdraw()
result = messagebox.askquestion(title=title, message=prompt, icon='warning')
root.destroy()
return result
Post a Comment for "Python Flask: Getting An Error When Server Shutdown Is Declined"