473,322 Members | 1,699 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,322 software developers and data experts.

Pydev Console use vs. stdout/stderr

Just getting used to the PyDev environment in eclipse by playing with
a few simple programs. I'm also using wxPython GUI stuff.

I've noticed though that simple print commands in my code cause a
"wxPython:stdout/stderr" popup window to display any print's I might
be dumping out, rather than going to the console in Eclipse.

Any suggestions of why this is? Another code example I was looking
at (which does not include any wx GUI stuff) has print commands whose
result ends up in the Eclipse console, just to further confuse me.

Is this something that wxPython is imposing on the environment?

Thx.
Ross.
Jun 27 '08 #1
2 2901
On May 15, 3:12 pm, RossGK <ros...@gmail.comwrote:
Just getting used to the PyDev environment in eclipse by playing with
a few simple programs. I'm also using wxPython GUI stuff.

I've noticed though that simple print commands in my code cause a
"wxPython:stdout/stderr" popup window to display any print's I might
be dumping out, rather than going to the console in Eclipse.

Any suggestions of why this is? Another code example I was looking
at (which does not include any wx GUI stuff) has print commands whose
result ends up in the Eclipse console, just to further confuse me.

Is this something that wxPython is imposing on the environment?
Yes, it's wxPython, it does that by default. Pass the keyword argument
"redirect" set to False to your wx.App object constructor:

app = wx.App(redirect=False)

Or to whatever class you derived from wx.App:

app = ClassDerivingFromWxApp(redirect=False)
Jun 27 '08 #2
On May 15, 5:26 pm, s0s...@gmail.com wrote:
On May 15, 3:12 pm, RossGK <ros...@gmail.comwrote:
Just getting used to the PyDev environment in eclipse by playing with
a few simple programs. I'm also using wxPython GUI stuff.
I've noticed though that simple print commands in my code cause a
"wxPython:stdout/stderr" popup window to display any print's I might
be dumping out, rather than going to the console in Eclipse.
Any suggestions of why this is? Another code example I was looking
at (which does not include any wx GUI stuff) has print commands whose
result ends up in the Eclipse console, just to further confuse me.
Is this something that wxPython is imposing on the environment?

Yes, it's wxPython, it does that by default. Pass the keyword argument
"redirect" set to False to your wx.App object constructor:

app = wx.App(redirect=False)

Or to whatever class you derived from wx.App:

app = ClassDerivingFromWxApp(redirect=False)
Thank you! That was very helpful, and works fine.

-Ross.
Jun 27 '08 #3

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

Similar topics

2
by: Francis Avila | last post by:
This is not really a python question, but a posix question. (If it's too little of a python question to be OT, please let me know.) I wanted a simple "bi-directional cat", i.e. something that...
1
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
6
by: metiu | last post by:
Say I have a console app that does something in three steps: - opens a file - transfers the file through a serial port - does some elaborations and I want to build a GUI around it that, for...
6
by: Kkaa | last post by:
I'm using the os.system command in a python script on Windows to run a batch file like this: os.system('x.exe') The third-party program x.exe outputs some text to the console that I want to...
14
by: nathan.shair | last post by:
Hello, I searched on Google and in this Google Group, but did not find any solution to my problem. I'm looking for a way to output stdout/stderr (from a subprocess or spawn) to screen and to...
2
by: castironpi | last post by:
Presents a console permitting inspection. Input as well as output saved in Python-readable form. Python 2.5.1 memoryconsole4.py logging to My Documents\console.log .... def f( self ): .... ...
4
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it...
0
by: Fabio Zadrozny | last post by:
Hi All, Pydev and Pydev Extensions 1.3.16 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development:...
4
by: Kee | last post by:
Dear All I need a sample working under console using C#, basically it should looks like utilities under console support pipe and redirect operation. May I seek your help to send me a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.