[Paraview] pqPythonShell on local server & local client

clinton at elemtech.com clinton at elemtech.com
Mon Feb 18 17:22:32 EST 2008


The python code is executed on the client side.  Any interaction with a server 
is done with the servermanager module.
http://www.paraview.org/Wiki/ParaView:pvpython

Perhaps you're calling pqPythonShell::executeScript with the filename, instead 
of the python code itself?  Unless I see some code, I'm only guessing.

Clint

On Monday 18 February 2008 6:37:36 am Alexander Wille wrote:
> Hi Clint,
>
>
> I'm now retrieving the handle on the main window through the
> vtkProcessModule. Thanks for the hint! The QWidget*-argument of the
> pqPythonShell does, as you said, not tell the shell where to actually
> execute its scripts. The problem that, no matter what I specify as the
> constructor argument to pqPythonShell, executing a script with the created
> object just does nothing on any server. The pqPythonShell seems not to be
> tied to any server, but I need it to run scripts just like the
> Tools->Phython Shell-Dialog of the GUI would. Do you know how to make that
> connection?
>
>
> Regards,
> Alex
>
> > I don't think you want to give your pqPythonShell the main window, unless
> > you're using a QDialog, and pqPythonShell is not a QDialog.
> > Just pass in NULL as the parent of your pqPythonShell, or another QWidget
> > you make yourself.
> >
> > If you need the GUI Helper, you can do
> > vtkProcessModule::GetProcessModule()->GetGUIHelper();




More information about the ParaView mailing list