[Paraview] ParaView Python Threading

Robert Maynard robertjmaynard at gmail.com
Thu Oct 2 14:42:45 EDT 2008


I have a basic threaded python script that I wanted to run in ParaView, 
but it seems that whenever you try to run a thread nothing happens in 
the python console. Trying to reset the console window crashes ParaView. 
This seems to be odd because the same script is able to work inside 
pvpython.

Here is the script I was running:

#!/usr/bin/env python
from threading import Thread, Timer

def test():
  print 'hello world'
 
def runTest():
  t = Timer(3,test)
  t.start()

runTest()


More information about the ParaView mailing list