Package: python-vtk
Version: 4.4.2-8
Severity: minor
Tags: patch

The file 
/usr/lib/python2.3/site-packages/vtk_python/vtk/qt/QVTKRenderWindowInteractor.py
is intended to function as an example of using a VTK widget within a Qt
application.  However, python2.3-qt3 does not accept keyword arguments
(I guess it did at one time).  As such, the attached patch makes a minor
change to the invocation of the QWidget constructor, to avoid the error
that now occurs when 
    python2.3 
/usr/lib/python2.3/site-packages/vtk_python/vtk/qt/QVTKRenderWindowInteractor.py
is executed.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages python-vtk depends on:
ii  libc6                    2.3.5-6         GNU C Library: Shared libraries an
ii  libexpat1                1.95.8-3        XML parsing C library - runtime li
ii  libfreetype6             2.1.7-2.4       FreeType 2 font engine, shared lib
ii  libgcc1                  1:4.0.2-2       GCC support library
ii  libice6                  6.8.2.dfsg.1-7  Inter-Client Exchange library
ii  libjpeg62                6b-10           The Independent JPEG Group's JPEG 
ii  libpng12-0               1.2.8rel-1      PNG library - runtime
ii  libsm6                   6.8.2.dfsg.1-7  X Window System Session Management
ii  libstdc++6               4.0.2-2         The GNU Standard C++ Library v3
ii  libtiff4                 3.7.3-1         Tag Image File Format (TIFF) libra
ii  libvtk4c2                4.4.2-8         Visualization Toolkit - A high lev
ii  libx11-6                 4.3.0.dfsg.1-14 X Window System protocol client li
ii  libxext6                 4.3.0.dfsg.1-14 X Window System miscellaneous exte
ii  libxt6                   4.3.0.dfsg.1-14 X Toolkit Intrinsics
ii  python                   2.3.5-3         An interactive high-level object-o
ii  tcl8.4                   8.4.11-1        Tcl (the Tool Command Language) v8
ii  tk8.4                    8.4.9-1         Tk toolkit for Tcl and X11, v8.4 -
ii  xlibmesa-gl [libgl1]     4.3.0.dfsg.1-14 Mesa 3D graphics library [XFree86]
ii  xlibmesa-glu [libglu1]   4.3.0.dfsg.1-14 Mesa OpenGL utility library [XFree
ii  xlibs                    4.3.0.dfsg.1-14 X Keyboard Extension (XKB) configu
ii  zlib1g                   1:1.2.3-4       compression library - runtime

python-vtk recommends no packages.

-- no debconf information
*** QVTKRenderWindowInteractor.py.orig	Wed Oct 12 16:51:05 2005
--- QVTKRenderWindowInteractor.py	Wed Oct 12 17:01:04 2005
***************
*** 35,40 ****
--- 35,41 ----
  
  import qt
  import vtk
+ import exceptions
  
  class QVTKRenderWindowInteractor(qt.QWidget):
  
***************
*** 132,139 ****
              rw = kw['rw']
              del kw['rw']
  
          # create qt-level widget
!         apply(qt.QWidget.__init__, (self,parent,name) + args, kw)
  
          if rw: # user-supplied render window
              self._RenderWindow = rw
--- 133,143 ----
              rw = kw['rw']
              del kw['rw']
  
+ 	if len(kw) > 0:
+ 	    raise exceptions.TypeError("keyword arguments other than 'stereo' and 'rw' are not supported")
+ 
          # create qt-level widget
!         qt.QWidget.__init__(self,parent,name, *args)
  
          if rw: # user-supplied render window
              self._RenderWindow = rw

Reply via email to