Search code examples
pythonpygamecx-freeze

Terminal window appears along with pygame window upon launch of the exe


I made a game using pygame and built it using cx_Freeze, now when I run the executable it launches a console window along with the pygame window, is there any way to remove/disable this window


Solution

  • I solved it

    In the cx_Freeze setup file you need to add the line

    base = “WIN32GUI”
    

    When declaring your exeacutable