Well, you could see the warnings module to disable depreciation warnings. However, to solve your more general problem of redirecting stdout and stderr, note that wxApp takes a few parameters -- the first of which is whether the output should be redirected. You are probably passing a true value currently. Setting that to false when you build with py2exe should fix things for you. Or, alternatively, you can pass a filename as the second argument to save the output to a file.
As for the second problem, you need to include a .manifest file with your distribution. I just redistribute the python.exe.manifest. Note that it needs to match the name of your exe.
Have Fun!
-Shane
Heikki Salo wrote:
···
Is there a way to disable the wxPython stdot/stderr window show that it
would not pop up everytime there is an error or a print statement? I am
askin becouse of that deprication warning
(
C:\PROGRA~1\Python23\lib\site-packages\wxPython\lib\imageutils.py:33:
DeprecationWarning: integer argument expected, got float
anImage.SetData(''.join(map(chr, data)))
)
that shows every time I start up a wxPython application. Or is there any
other way to fix it?I have another broblem too: when I use py2exe to make my program more easily
distributed, the nice Windows XP-style buttons (and controls) dont look the
same as when the program is run from a script. When run from the exe they
look like the old Windows 3.11 buttons, brown and ugly. Should they be
manualy set or something like that? By the way, wxPyhon is the best!---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org