Re: wxpython ms-dos black window popping up in background



On 9 sep, 23:35, icarus <rsa...@xxxxxxxxx> wrote:
Oh ok. Thanks. In windows xp I just renamed the file extension to .pyw
That did it.

one more question...

how do I create a pythonw standalone executable that works on w32,
linux, mac, etc..?

My intent is to have the process transparent to the user. He wouldn't
even know the app was written in python. All he knows that when he
double-clicks on it, the application pops up without the DOS black
screen in the background (for w32 users.)

On Sep 9, 10:49 am, "Chris Rebert" <c...@xxxxxxxxxxxx> wrote:

You need to have the script be run by pythonw.exe as opposed to python.exe
pythonw.exe suppresses the DOS box from coming up and should be used
for running GUI applications such as yours.

Regards,
Chris

On Tue, Sep 9, 2008 at 1:33 PM, icarus <rsa...@xxxxxxxxx> wrote:
platform: windows xp professional, python 2.5, wxpython

When I double-check on my program file test.py (for simplicity I'll be
using this code below), I see the window just fine. But the ms-dos
black window pops up in the background. On Linux, no issues at all.

How can I get rid of that ms-dos black window in the background?
something I need to add to my code? a setting to adjust in windows?
thanks in advance.

#!/usr/bin/python
import wx

appwx = wx.App()

frame = wx.Frame(None, -1, 'test.py')
frame.Show()

appwx.MainLoop()
--
http://mail.python.org/mailman/listinfo/python-list

--
Follow the path of the Iguana...http://rebertia.com

py2exe could be what you are looking for.
.



Relevant Pages

  • Re: wxpython ms-dos black window popping up in background
    ... how do I create a pythonw standalone executable that works on w32, ... I see the window just fine. ... On Linux, no issues at all. ... How can I get rid of that ms-dos black window in the background? ...
    (comp.lang.python)
  • Re: Bit Twister: Is this the dhclient-exit-hooks you were talking about?
    ... It lets you take a screenshot ... See slrn running in the term window? ... Redhat left the linux user community in the lurch awhile back ... She will go for that and then I can get on with the FC5 install that I ...
    (alt.os.linux)
  • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
    ... You don't have to install any networking ... > know linux, but there seems to be several "window" managers available. ... underlying API, Xlib in this case, is too complicated to use. ...
    (alt.lang.asm)
  • Re: OpenOffice and Leopard
    ... Those are almost certainly OpenOffice bugs. ... Which explains why it's available on Windows, Solaris, MacOS X, and FreeBSD, as well as Linux. ... It can't be Linux-specific, as it was developed out of the X Window System ... I should have said X Window instead of Linux, but I have never used any OS but Mac and adaptations for Mac, i. e., SoftWindows, etc. ...
    (comp.sys.mac.apps)
  • Re: Prob w/ virtual terminals
    ... And a lot of Linux distros are going down that same path. ... interfaces like KDE/Gnome that are making this possible. ... I have X and a window manager and a mouse. ... I use graphical applications. ...
    (comp.os.linux.setup)