5

I tried renaming my .py file to .pyw. But compiling with py2exe does not make a difference.

I tried using root.withdraw() but all it does is freeze the application, prevent the initial canvas from popping up, and fail to remove the command prompt window anyways.

Does anyone have a solution?

My root is: root = Tk()

1 Answer 1

5

I ended up finding the solution on http://ubuntuforums.org/showthread.php?t=728170

In short, the solution is to change the line setup(console=["yourapp.py"]) to setup(windows=["yourapp.py"]), otherwise, it is the same code as the rest of the py2exe tutorial.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.