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

Win GUI application: avoiding DOS console

Hi all,

how do I avoid the DOS console show-up when starting a WinXP GUI application
with mouseclick on the respective Python file?

I had this with my previous Python installation; it is very simple,
something with a "-i" somewhere in the open command of the MS Windows data
types "PY" and "PYW". But after a new Python installation, this was lost,
and I cannot find the instruction what to do.

Please help!

Thanks,

siggi
Jan 20 '07 #1
4 1597
Siggi a écrit :
Hi all,

how do I avoid the DOS console show-up when starting a WinXP GUI application
with mouseclick on the respective Python file?
rename yourfile.py to yourfile.pyw
Jan 20 '07 #2
Thanks, but I don't mean that, I am looking for the method keeping *.py.

"Bruno Desthuilliers" <bd*****************@free.quelquepart.frschrieb im
Newsbeitrag news:45***********************@news.free.fr...
Siggi a écrit :
>Hi all,

how do I avoid the DOS console show-up when starting a WinXP GUI
application with mouseclick on the respective Python file?

rename yourfile.py to yourfile.pyw

Jan 20 '07 #3
Siggi napisa³(a):
how do I avoid the DOS console show-up when starting a WinXP GUI application
with mouseclick on the respective Python file?

I had this with my previous Python installation; it is very simple,
something with a "-i" somewhere in the open command of the MS Windows data
types "PY" and "PYW". But after a new Python installation, this was lost,
and I cannot find the instruction what to do.
Run it using pythonw.exe instead of python.exe (check in file types
properties window).

--
Jarek Zgoda
http://jpa.berlios.de/
Jan 20 '07 #4

"Jarek Zgoda" wrote:
Siggi napisa³(a):
>how do I avoid the DOS console show-up when starting a WinXP GUI
application
with mouseclick on the respective Python file?

I had this with my previous Python installation; it is very simple,
something with a "-i" somewhere in the open command of the MS Windows
data
types "PY" and "PYW". But after a new Python installation, this was lost,
and I cannot find the instruction what to do.

Run it using pythonw.exe instead of python.exe (check in file types
properties window).

--
Jarek Zgoda
http://jpa.berlios.de/
Thanks!

siggi
Jan 22 '07 #5

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

Similar topics

7
by: Job Lot | last post by:
How can I terminate console application in Try…Catch…Finally…End Try block so that code in Finally gets executed. If I use End statement Finally does not get executed. Following is my code...
5
by: Mullin Yu | last post by:
i want to build an application of both gui and batch interface by using windows application project. i check either passing any args or not. if no, then open the gui application. if yes, use the...
5
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
3
by: inpreet | last post by:
I am trying to build a console application in C#.Net. This application is suppose to run in background without user interaction. How can I hide console to appear?
6
by: Erez Shor | last post by:
Hi, I need to build and asp page which access a remote windows server's registry and create a registry key. In order for the ASP page to be able to access the registry on the remote server I need...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
4
by: eduardorp1 | last post by:
I have a GUI application that needs to be invoked from the command line as well. It should work both as a GUI and as a console application. When I invoke it from the command line, it reads all...
6
by: tony | last post by:
Hello! When you have windows forms you have the same possibility as when you have a Console application to use Console.Writeln to write whatever on the screen. Now to my question: Is it...
4
by: rsa_net_newbie | last post by:
Hi there, I have a Managed C++ object (in a DLL) which has a method that is defined like ... Generic::List<String^>^ buildList(String^ inParm) Now, when I compile it, I get "warning C4172:...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.