[BangPypers] Fwd: Executing WxPython script in Windows without the command window

Amit k. Saha amitsaha.in at gmail.com
Fri Jan 9 14:03:25 CET 2009


---------- Forwarded message ----------
From: Parthan SR <parth.technofreak at gmail.com>
Date: Fri, Jan 9, 2009 at 12:03 PM
Subject: Re: [BangPypers] Executing WxPython script in Windows without
the command window
To: "Amit k. Saha" <amitsaha.in at gmail.com>


Amit k. Saha wrote:
>
> Cool. 'pyw' extension helps Windoze to use the 'pythonw.exe' instead
> of 'python.exe' which suppresses the command window

Just to add to this point - when creating an exe for the above using
py2exe, in your setup.py script please use something like

windows = [
{
"script": "script.pyw"
}
],

If, in the above piece of code, you use "console" instead of
"windows", then even when you have pointed .pyw file you will still
happen to see a console window when you execute the exe.

--
---
With Regards,

Parthan "technofreak"
<gpg>  2FF01026
<blog> http://blog.technofreak.in




-- 
Amit Kumar Saha
http://amitksaha.blogspot.com
http://amitsaha.in.googlepages.com/
Skype: amitkumarsaha


More information about the BangPypers mailing list