473,406 Members | 2,451 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,406 software developers and data experts.

console window not disappearing with py2exe

In another one of my silly apps, I'm using 'windows=' in the setup
script. I can't get the darn console window do disappear. Since the
said app is going to be used with people that have less-than-average
knowledge in computers, it is imperative that this window goes away. I
tried sys.frozen = "windows_exe" and it doesn't work. I'm not sure
what to do. Please save me!

-Matt K Jensen
Jul 18 '05 #1
3 2115
In your original source file, change the .py file extension to .pyw. The
..pyw extension tells the python exectuable to run without showing the
console. Then remove the "windows" stuff in your setup file.

"Matthew K Jensen" <ma********@timetospare.net> wrote in message
news:17**************************@posting.google.c om...
In another one of my silly apps, I'm using 'windows=' in the setup
script. I can't get the darn console window do disappear. Since the
said app is going to be used with people that have less-than-average
knowledge in computers, it is imperative that this window goes away. I
tried sys.frozen = "windows_exe" and it doesn't work. I'm not sure
what to do. Please save me!

-Matt K Jensen

Jul 18 '05 #2
Put -windows option on compile line:

python setup.py py2exe --windows

HTH,
Larry Bates
Syscon, Inc.
"Matthew K Jensen" <ma********@timetospare.net> wrote in message
news:17**************************@posting.google.c om...
In another one of my silly apps, I'm using 'windows=' in the setup
script. I can't get the darn console window do disappear. Since the
said app is going to be used with people that have less-than-average
knowledge in computers, it is imperative that this window goes away. I
tried sys.frozen = "windows_exe" and it doesn't work. I'm not sure
what to do. Please save me!

-Matt K Jensen

Jul 18 '05 #3
ma********@timetospare.net (Matthew K Jensen) wrote in message news:<17**************************@posting.google. com>...
In another one of my silly apps, I'm using 'windows=' in the setup
script. I can't get the darn console window do disappear. Since the
said app is going to be used with people that have less-than-average
knowledge in computers, it is imperative that this window goes away. I
tried sys.frozen = "windows_exe" and it doesn't work. I'm not sure
what to do. Please save me!

-Matt K Jensen


This is emberassing. I'm going to retract this in full because of an
improperly configured setup script. It works now. I don't need anybody
giving me advise on this one. Thanks if anybody read it :)

-Matt K Jensen
Jul 18 '05 #4

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

Similar topics

3
by: Marc | last post by:
Hi all, I know that to hide a console normally you simply change the extension from .py to .pyw. That's simple enough. However I can't seem to accomplish the same thing after freezing the...
6
by: Lucas Raab | last post by:
I'm looking to play a joke on a friend and I'm wondering if there's a way to not show or hide the DOS console. My friend doesn't have python so I have to compile it to an EXE. TIA
3
by: JZ | last post by:
I do not know how to get rid off the black console window during execution wxApp1.exe. My setup.py file for py2exe is: from distutils.core import setup import py2exe setup(console=) I...
1
by: Tarique Jawed | last post by:
Alright - I've been using VS .NET for all of 3 hours now - so pardon the stupidity of my question. Can someone walk me through a simple hello world that outputs to console, in terms of which...
6
by: zdp | last post by:
Dear all: I made a window program by wxPython. Split windows, treectrl, listctrl and textctrl are used. When I program in python, the look & feel of the window controls are like the windos XP...
3
by: Jerry | last post by:
I have created an application using wxPython and compiled it using py2exe. When I put setup(console=) in my setup.py file, the resulting application runs just fine. But when I change it to...
10
by: Stephany Young | last post by:
When one uses the System.Diagnostics.Process.Start method to launch a common or garden Console application, one can set the WindowStyle property of the StartInfo object to ProcessWindowStyle.Hidden...
1
by: Kevin McKinley | last post by:
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...
3
by: Curious | last post by:
I''ve created a simple Console Application in C#.NET (.NET 2.0), and I have the following code: Console.WriteLine("Now let us begin!"); However, the string, "Now let us begin!", never shows up...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.