[vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events
Prabhu Ramachandran
prabhu_r at users.sf.net
Fri Jan 28 13:30:52 EST 2005
>>>>> "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, youll
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> classs __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?
What do users of the widget think?
cheers,
prabhu
More information about the vtkusers
mailing list