Hi
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)))
Shan wrote:
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 ...
Hiding or redirecting your stdIO will not solve you problem, it just
hides it. There is an error in your python code. The deprecation warning
is quite clear.
In python 2.4 (yes 2.4), such a deprecation warning, will be an error and your
code will not work at all. Using py2exe will not help. So correct your code
now.
Jean-Michel Fauth, Switzerland