467,140 Members | 1,381 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,140 developers. It's quick & easy.

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
  • viewed: 2718
Share:
2 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Francis Avila | last post: by
6 posts views Thread by metiu | last post: by
6 posts views Thread by Kkaa | last post: by
14 posts views Thread by nathan.shair@gmail.com | last post: by
2 posts views Thread by castironpi@gmail.com | last post: by
reply views Thread by Fabio Zadrozny | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.