[Paraview] Printing from a macro

2011-09-28 Thread Greg Schussman
Hi, Everyone. When I print from a python macro within ParaView, sometimes the output of that print goes to ParaView's Output Window, and sometimes it goes to ParaView's Python Shell. Is there a way I can control which of those two windows will receive the output of a print? Thanks. Greg

Re: [Paraview] Printing from a macro

2011-10-03 Thread Greg Schussman
Or, even if it's not possible to control which window ("Output Window" vs. "Python Shell") displays the output, is there at least a way to predict which one will do the displaying? Thanks. Greg On 9/28/2011 12:41 PM, Greg Schussman wrote: Hi, Everyone. When I print from a python macro withi

Re: [Paraview] Printing from a macro

2011-10-03 Thread Pierre Chevalier Géologue
Le 03/10/2011 09:58, Greg Schussman claviota: Or, even if it's not possible to control which window ("Output Window" vs. "Python Shell") displays the output, is there at least a way to predict which one will do the displaying? It will probably be the one which has the focus, I guess. À+ Pierr

Re: [Paraview] Printing from a macro

2011-10-04 Thread Greg Schussman
On 10/03/2011 02:18 AM, Pierre Chevalier Géologue wrote: Le 03/10/2011 09:58, Greg Schussman claviota: Or, even if it's not possible to control which window ("Output Window" vs. "Python Shell") displays the output, is there at least a way to predict which one will do the displaying? It will pro

Re: [Paraview] Printing from a macro

2011-10-06 Thread Pierre Chevalier Géologue
Hello, Sorry for the delay: too much work! Le 05/10/2011 00:46, Greg Schussman claviota: Would you have any idea how to set the focus from python? Hm, not really. I'll see if I can figure it out, I'll keep you informed. Not in the coming days, I'm afraid, I'm just about to leave for a mis

Re: [Paraview] Printing from a macro

2011-10-06 Thread Greg Schussman
Hi, Pierre. Thanks for responding, especially considering your workload. Best of luck on your mission. I'll keep looking at this, and will post if I find something or figure something out. Greg On 10/06/2011 01:28 AM, Pierre Chevalier Géologue wrote: Hello, Sorry for the delay: too much w

Re: [Paraview] Printing from a macro

2011-10-06 Thread pat marion
Hi Greg, I may be out of touch with some recent paraview developments, but I have never seen this behavior before, it sounds like a bug to me. Output from code that is executed in the python console, which includes python macros, should always be routed to the python console, not paraview's outpu

Re: [Paraview] Printing from a macro

2011-10-06 Thread Greg Schussman
Hi, Pat. You're right. When the print comes from inside a programmable filter, the output goes to the Output Messages, and when I print from the macro, the output goes to the Python Shell. I had thought that, within a programmable filter, print "something" was going to the Output Message