0

Here's what I have done so far: -I made a desktop search program/GUI using python and tkinter.

-Then I used py2exe to convert it to an exe.

-Now the software perfectly works on a machine(windows) without python installed, but the problem is that a creepy black window just appears along with the GUI when the .exe is opened.

Is there any way to make it look less creepy to an end user?

Yugal
  • 1
  • 2
  • 2
    I think that this question was answered [here](http://stackoverflow.com/questions/764631/how-to-hide-console-window-in-python). Hope this helps – Craig Douglass Jul 23 '16 at 12:53
  • I'm a bit confused here. If I rename it with .pyw extension, will py2exe freeze it using pythonw.exe or something? And if the end user doesn't have python installed(thus no pythonw.exe), will it then make a difference? – Yugal Jul 23 '16 at 13:32
  • I am going to check it, but I just asked for curiosity's sake.. :) – Yugal Jul 23 '16 at 13:33

2 Answers2

0

Change the file extension from .py to .pyw (You must have Python installed for this to work.)

Duplicate: Hide console window with Tkinter and cx_Freeze

Community
  • 1
  • 1
Amal Rajan
  • 153
  • 1
  • 11
0

Before converting your file to an exe, change the file extension (by renaming the file) from .py to .pyw.

'.py' files open with the console, whereas '.pyw' files open with no console window.

X1525
  • 35
  • 1
  • 8