Error to show pop up on .exe file using cxfreeze on python

Viewed 14

I have a code that I made and it is working fine and i have a try exception that show me a pop up error of my code when i have some exception, but when I use cx freeze and create an .exe, my python code doesn't show the pop up errors.

I always use the command "cxfreeze (file name).py" to create an .exe

I dont create the setup file yet, but i wanna know if have some command that i can use on prompt before.

this is my exception code:

except BaseException as err:
    print(f"Erro inesperado: {err=}, {type(err)=}")
    ctypes.windll.user32.MessageBoxW(0,f"Erro inesperado: {err}, {type(err)}","Erro inesperado", 0)
0 Answers
Related