From: Kevin A. <al...@se...> - 2004-06-14 18:41:43
|
On Jun 14, 2004, at 10:56 AM, Luis M. Gonzalez wrote: > Hello people! > > I just discovered Pythoncard yesterday and I fell in love with it. > I agree that there are a lot of room for improvement, but anyway, it is > great just the way it is now. > Very easy, very simple, very python... > > Well, the only problem I have is how to get rid of the annoying DOS > box when > starting a program. > I managed to hide it by setting the coordinate of its position out of > the > screen's range, but I'm sure there's a better way to do it... > (please forgive my bad English..) > > Any hint would be highly appreciated... > This is a Python FAQ. If you run a Python script on Windows with pythonw.exe instead of python.exe then you won't get a "DOS" console. You can also change the extension of your script to .pyw, which will also avoid the console appearing. Note that you probably want to have a console appear unless you have completely debugged your program since you won't see any exceptions or error messages displayed without a console window. ka |