[PySide] PySide and VTK on Windows 32
Marc.Poinot at onera.fr
Marc.Poinot at onera.fr
Fri Apr 5 10:47:20 CEST 2013
Hi you all,
I've got a PySide/VTK application, connected using the
QVTKRenderWindowInteractor.
PySide 1.0.9 works ok on Unix based systems with a QT4.8/VTK 5.8. (all
Python 2.7.3)
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...
I'm starting some more tests on both MS-Windows and Unix, but maybe some
of you could give me a piece of advice?
What and where do I have to look for?
Could it be related to a bad cast of this **long** on a **32bits**
system, produced by the PySide interface generator to Qt?
see line 152
http://sourceforge.net/p/pycgns/code/ci/17b696c3b0ad2b387b7e0ddc5d9b195cbc6abf70/tree/NAVigater/CGNS/NAV/Q7VTKRenderWindowInteractor.py
---
this is a repost of:
http://stackoverflow.com/questions/15813643/pyside-and-vtk-on-windows-32
--
-----------------------------------------------------------------------
Marc POINOT [ONERA/DSNA] Tel:+33.1.46.73.42.84 Fax:+33.1.46.73.41.66
Avertissement/disclaimer http://www.onera.fr/onera-en/emails-terms
More information about the PySide
mailing list