I am wanting to create a simple message box in Tkinter that appears and displays the exact error message. Could anyone direct me to how this might be achieved in tkinter, I have not been able to find much on this topic.
E.g:
traceback.format_exc().replace(':', '-')
ctypes.windll.user32.MessageBoxW(0, "Error", "Have you checked your fridge?"d, 1)
^
#'SyntaxError: invalid syntax'
I am wanting to add this with pyinstaller. I suppose pyinstaller creates a text file and you can see in cmd before it closes, but it would be nice if a message box appear with exact traceerror.