GIDForums  

Go Back   GIDForums > Computer Programming Forums > Python Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-May-2008, 06:59
sarabhjeet sarabhjeet is offline
New Member
 
Join Date: Jan 2008
Posts: 10
sarabhjeet is on a distinguished road

How to remove command line window


HI all,
whenever we open any python/wxpython program there is one more window other than our application is running which is command line window that black window for showing any error or any output through print statement.So i want to remove that window from my wxpython's application,how to do this?please help me...
  #2  
Old 19-May-2008, 23:44
sarabhjeet sarabhjeet is offline
New Member
 
Join Date: Jan 2008
Posts: 10
sarabhjeet is on a distinguished road
Thumbs up

Re: how to remove command line window...


Quote:
Originally Posted by sarabhjeet
HI all,
whenever we open any python/wxpython program there is one more window other than our application is running which is command line window that black window for showing any error or any output through print statement.So i want to remove that window from my wxpython's application,how to do this?please help me...
Its been solved by just changing the extension from .py to .pyw
  #3  
Old 20-May-2008, 19:38
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,627
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: How to remove command line window


At least now you know one way to error check your code.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language.
-------------
Common Sense v2.0-Striving to make the world a little bit smarter.
  #4  
Old 03-Dec-2008, 08:53
kalee kalee is offline
New Member
 
Join Date: Dec 2008
Posts: 4
kalee is on a distinguished road

Re: How to remove command line window


While I create a XYZ.exe file for windows, from python using the source file XYZ.py , I couldnt get rid of the window... I have changed the extensions too...
Any suggestion Guys
  #5  
Old 05-Dec-2008, 07:15
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,627
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: How to remove command line window


How are you creating the .exe file and what libraries are you including in the program?
__________________
Start Programming with Python-A beginner's guide to programming and the Python language.
-------------
Common Sense v2.0-Striving to make the world a little bit smarter.
  #6  
Old 07-Dec-2008, 22:16
kalee kalee is offline
New Member
 
Join Date: Dec 2008
Posts: 4
kalee is on a distinguished road

Re: How to remove command line window


Using py2exe module.... You can try it out.... Its purpose is to create exe file , which doesnt require Python installation.
  #7  
Old 08-Dec-2008, 04:50
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,627
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: How to remove command line window


I can't really answer you question since I'm using a Mac; I have used Py2Exe in the past but I don't remember what the output was. You might try this suggestion.

However, eliminating the console window isn't necessarily a good thing. The console is where any error messages, print statements, etc. will be displayed.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language.
-------------
Common Sense v2.0-Striving to make the world a little bit smarter.
  #8  
Old 08-Dec-2008, 06:14
kalee kalee is offline
New Member
 
Join Date: Dec 2008
Posts: 4
kalee is on a distinguished road

Re: How to remove command line window


Thats what I am looking for. I had created a widget which will throw the output... so, if i can see the output through another widget, why do i need the output window... Infact its, not pleasing when a command window appears, when you are creating a customised GUI application
  #9  
Old 08-Dec-2008, 06:23
kalee kalee is offline
New Member
 
Join Date: Dec 2008
Posts: 4
kalee is on a distinguished road

Re: How to remove command line window


I dont know , whether it will work or not... but will try it, Thanks crystal lattice
  #10  
Old 09-Dec-2008, 05:53
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,627
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: How to remove command line window


Quote:
Originally Posted by kalee
Thats what I am looking for. I had created a widget which will throw the output... so, if i can see the output through another widget, why do i need the output window... Infact its, not pleasing when a command window appears, when you are creating a customised GUI application
As long as you still have a way to get output, it's fine. The console is just the standard way for Python to output info. It doesn't preclude you from capturing the information in a different format, e.g. a log, and use that instead.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language.
-------------
Common Sense v2.0-Striving to make the world a little bit smarter.
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Traditional Win32 programming vs. wxWidgets Zorachus C++ Forum 2 10-Feb-2007 18:54
need help with a console menu system BullBuchanan C++ Forum 6 20-Aug-2006 15:46
How to minimize a application to the system tray? Thomas555 C++ Forum 12 20-May-2005 14:35
Win32 Window Shading behavior (like linux) WillyumYum C++ Forum 3 18-Apr-2005 15:36
Changing window start colour Rosdahale C++ Forum 5 19-Jan-2005 16:51

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:40.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.