[Paraview] macros and pyqt

2011-05-17 Thread Stephane PLOIX
Hi, Did anyone try to use pyqt in a macro (to get some input from the user)? I can't make anything working with signal and slots, it seems to mess with the python threads. I can understand that it may not be possible to use non modal dialogs because the paraview gui in single-threaded, but even

Re: [Paraview] macros and pyqt

2011-05-17 Thread Utkarsh Ayachit
I have done it in past. Attached is a python script. The key is to avoid using anything but direct SMproxies or SMproperties, never their python wrapped counter parts. (Note you may not be able to use the script directly since it expects a certain kind of state file loaded, but should serve as an

Re: [Paraview] macros and pyqt

2011-05-17 Thread pat marion
Hi Stephane, Have you seen this email before? http://paraview.markmail.org/message/6h767kpak5dcoqwt Are you using a paraview release or building from source? If you're building from source I can send you a patch that will fix the multiple interpreter issue for pyqt. With that patch, the

Re: [Paraview] macros and pyqt

2011-05-17 Thread pat marion
I've published the patches on github now. The branch is called fix-multi-interp and the repo is git://github.com/patmarion/ParaView.git https://github.com/patmarion/ParaView/commits/fix-multi-interp These commits fix the issues with using pyqt signal/slots in the paraview python console, at