473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Hide Console

When I use py2exe to convert Python script to executable Windows programs I always have a black console pop up behind my program. If i run the script before i convert it with py2exe it don't have the console because i save the script ending with .pyw instead of .py. Is there a way to get rid or hide this console once i've turned it into a executable windows program?

Thanks you
Kevin McKinley

Aug 25 '08 #1
1 2882
On Aug 25, 10:59*am, Kevin McKinley <kem1...@yahoo.comwrote:
When I use py2exe to convert Python script to executable Windows programsI always have a black console pop up behind my program. *If i run the script before i convert it with py2exe it don't have the console because i save the script ending with .pyw instead of .py. *Is there a way to get ridor hide this console once i've turned it into a executable windows program?
You probably have a line in your setup.py similar to:

setup(console=['app.py'])

Change the 'console' to 'window' as such:

setup(window=['app.py'])

I -think- that should take care of it, but it's been a while since I
last used py2exe.

Aug 25 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jason Han | last post by:
I have a .NET Windows application which launches another .NET console application using Start() method in the Process class. I set the StartInfo.CreateNoWindow to true. But on Windows98, the...
3
by: Tom Jones | last post by:
I do not understand what is meant when someone states that a given method is "hidden" verses overriden. Would someone please provide a short example of both cases and why you might want to...
9
by: DaveF | last post by:
Can you hide a vb.net console window?
0
by: Peteroid | last post by:
I use the Console for debug purposes, so I created my application as a Console project. I create my own custom Form class, so I don't want to use a winform project (unless I can disable the...
10
by: ryan.andrus | last post by:
Hi, I need to make a command line application that I have written support an option that allows the user to use the /p:* switch to specify that they would like to type a password but have it...
0
by: Helge Lenuweit | last post by:
Hello, I am trying to put together an application that (1) shows Console.WriteLine() output when launched from within a console window (that is, from the command prompt) but that (2) **does not...
2
by: xfadeuk | last post by:
I have a requirement to create a simple window switching program, which switches between 2 windows when the specified hotkey is pressed. I have managed to accomplish this fairly easilly although I...
1
by: JupeMarsInc | last post by:
Hi, I'm using a simple console application project in VC++ (not a window one). my question is, how can I hide the console window,prevent it from popping up when i run my program? Thank you
2
by: piercy | last post by:
Hi, Theres a part in my program that i cant know the length of time the process will take. This is not due to me but due to the API's im having to deal with. i know the group amount (ie. 3 groups)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.