[vtkusers] vtkEventQtSlotConnect not wrapped in python

Clinton Stimpson clinton at elemtech.com
Mon Apr 23 14:40:59 EDT 2012


The .sip files only exist in the repository for the Qt based classes.
vtkEventQtSlotConnect is a vtkObject, so wrapping that for python works 
similar to wrapping other VTK classes.

Did you turn on VTK_WRAP_PYTHON_SIP?  You need to turn that on to generate 
python wrappers for VTK classes that use Qt or Qt classes that use VTK.

Clint

On Monday, April 23, 2012 12:32:19 pm José M. Rodriguez Bacallao wrote:
> yes, in fact I am using QVTKWidget to display my dicom images. What I
> saw was that the file vtkEventQtSlotConnect.sip does not exists uin
> that directory: GUISupport/Qt
> 
> On 4/23/12, David Gobbi <david.gobbi at gmail.com> wrote:
> > The problem is with the way that GUISupport/Qt/CMakeLists.txt calls
> > the wrapper tools.  Because GUISupport/Qt isn't set up like a "kit",
> > e.g. like Common, Rendering, etc., the wrapper tools don't get quite
> > as much information about the files in that directory as it should.
> > In other words, wrapping the files in that directory is a more work
> > than wrapping files in other directories.  This issue is fixed in VTK 6
> > but is quite troublesome in VTK 5.
> > 
> > Just to confirm, do you compile VTK with VTK_WRAP_PYTHON_SIP
> > turned on?
> > 
> >  - David
> > 
> > On Mon, Apr 23, 2012 at 11:45 AM, José M. Rodriguez Bacallao
> > 
> > <jmrbcu at gmail.com> wrote:
> >> no but, will be nice to use it from python!!! so, what's the problem
> >> with wrapping it?
> >> 
> >> On 4/23/12, David Gobbi <david.gobbi at gmail.com> wrote:
> >>> Have you used this class with Python in previous versions of VTK?
> >>> 
> >>> On Mon, Apr 23, 2012 at 7:02 AM, José M. Rodriguez Bacallao
> >>> 
> >>> <jmrbcu at gmail.com> wrote:
> >>>> no one?
> >>>> 
> >>>> On 4/20/12, José M. Rodriguez Bacallao <jmrbcu at gmail.com> wrote:
> >>>>> why vtkEventQtSlotConnect is not wrapped in python? I am using vtk
> >>>>> 5.10 RC1 and RC2
> 
> _______________________________________________
> 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

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com



More information about the vtkusers mailing list