[Paraview] python plugin custom dialog causes paraview to hang

m.c.wilkins at massey.ac.nz m.c.wilkins at massey.ac.nz
Sun Oct 17 19:44:21 EDT 2010


Hi Pat,

On Sun, Oct 17, 2010 at 04:09:49PM -0400, pat marion wrote:
> Before compiling paraview on windows, you might try this-
> 
> You can prevent processEvents from being called by taking the python console
> widget out of the loop.  Paraview sets sys.stdout and sys.stderr to a helper
> object that directs the output to the widget (where processEvents is called):
> 
> 
> >>> import sys
> 
> >>> sys.stdout.__class__
> 
> <type 'vtkPVPythonInterpretorWrapper'>
> 
> 
> So you can reroute output to disk:
> 
> sys.stdout = open("stdout.txt", "w")
> sys.stderr = open("stderr.txt", "w")

Thanks, that worked just fine!
Another thing that works is if I just don't do any print'ing ;-)

Matt




More information about the ParaView mailing list