[Paraview] Two Python Shell questions

Bill Sherman shermanw at indiana.edu
Fri Jun 7 16:28:10 EDT 2013


Hello ParaView people,

I have a couple questions about the Python shell in the ParaView GUI client:

1) Will we be able to paste text from the OS clipboard into the shell
such that it will be treated as input?  (Currently pasted text gets
ignored.)

2) Is there a way to have an ongoing loop that doesn't totally disable
the client GUI?  My goal is to have a script that watches for a change
in the data file and then will cause the pipeline to update, but if I
use the "pyinotify" package, the "loop" method goes into an enduring
loop, and so the Python shell doesn't relinquish control back to the
GUI, effectively freezing the ParaView client.  In fact I don't even
know how to send an interrupt to the Python in the shell.

As a quick test, an infinite while loop has the save effect:
	-> Tools -> Python Shell

         >>> count = 0
         >>> while 1:
         ...   count = count + 1
         ...   print count
         ...
         1
         2
         [...]

(frozen GUI).

	Thank you!
	Bill

--
Bill Sherman
Sr. Technology Advisor
Advanced Visualization Lab
Pervasive Technology Inst.
Indiana University
shermanw at indiana.edu


More information about the ParaView mailing list