[vtkusers] vtkEventQtSlotConnect and python
Alex Malyushytskyy
alexmalvtk at gmail.com
Tue Apr 2 17:23:01 EDT 2013
There is nothing you can do in Python which can't be done in C++.
And observers even though as far as I understand were created to
support scripting languages are not exceptions.
vtkEventQtSlotConnect just simplifies situation when you need Qt slot
be called as a result of vtk event.
I guess it might be useful in Python in similar situations toom but
nobody prevents you from calling them directly in callback.
Regards,
Alex
On Wed, Mar 27, 2013 at 6:22 AM, José M. Rodriguez Bacallao
<jmrbcu at gmail.com> wrote:
> there is any advantages on using vtkEventQtSlotConnect from python, I
> can see the advantage when using vtk from C/C++ but not when using it
> from python because with python I can add any callable as observer of
> any vtk event, I am missing something?
>
> PD: by the way, adding an observer to a vtk event from python still
> cause a reference cycle?
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list