[PySide] PySide and VTK on Windows 32

John Ehresman jpe at wingware.com
Fri Apr 5 16:23:14 CEST 2013


On 4/5/13 4:47 AM, Marc.Poinot at onera.fr wrote:
> Then I port on a Microsoft Windows system (XP 32), with PySide win32 
> distribution (1.1.x)  Qt4 and VTK 5.10, and I have a type error in 
> QVTKRenderWindowInteractor while retrieving the self.winId() which is 
> expected to be castable as int:
> 
>     TypeError: int() argument must be a string or a number, not 'PyCObject'
> 
> The PySide API actually says the PySide.QtGui.QWidget.winId() returns a 
> long...

This probably is a PySide bug in either the implementation or
documentation.  A PyCObject is Python C api object used to wrap a void
pointer and is not a long.  Could you open a bug report on the PySide
tracker at https://bugreports.qt-project.org/browse/PYSIDE ?

Thanks,

John




More information about the PySide mailing list