[vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events

Mathieu Malaterre mathieu.malaterre at kitware.com
Fri Jan 28 14:16:12 EST 2005

Prabhu Ramachandran wrote:
>>>>>>"MM" == Mathieu Malaterre <mathieu.malaterre at kitware.com> writes:
> Thanks for taking care of this Mathieu!
> [...]
>     MM>    File "QVTKRenderWindowInteractor.py", line 136, in __init__
>     MM>      apply(qt.QWidget.__init__, (self,parent,name) + args, kw)
>     MM> TypeError: keyword arguments are not supported
>     MM> The only solution I could find was from:
>     MM> http://goldenspud.com/webrog/archives/2004/07/20/pyqt-platform-inconsistencies/
>     MM> If you try to run that on PyQt atop Qt/Windows though, you’ll
>     MM> get a “TypeError: keyword arguments are not supported”
>     MM> exception raised.  Instead, leave out **kwargs when calling
>     MM> the superclass: If you leave **kwargs in the signature of your
>     MM> class’s __init__ as shown here, just be sure to send
>     MM> keyword-less arguments for those values you intend to reach
>     MM> the superclass when you call your class.
> Well, I really don't know and would guess that we could detect windows
> and leave the keyword args out for the broken platforms?

I forgot to mention I am on debian testing, using latest python-qt3 
package. So I guess on both win32 and linux this can be broken...


More information about the vtkusers mailing list