vtkTkPhotoImage.py - wrong call tcl command
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I suggest to patch this file for proper calling tcl command vtkImageDataToTkPhoto
This is my variant of method in class vtkTkPhotoImage from vtkTkPhotoImage module (tk-python widgets)
def PutImageSlice ( self, image, z, orientation='transverse', window=256, level=128 ): t = image.this s = 'vtkImageDataToTkPhoto %s %s %d %s %d %d' % ( t, self.name, z, orientation, window, level ) self.tk.eval ( s )
Previous version:
def PutImageSlice ( self, image, z, orientation='transverse', window=256, level=128 ): t = image.this s = 'vtkImageDataToTkPhoto %s %s %d %s %d %d' % ( t[:-2], self.name, z, orientation, window, level ) self.tk.eval ( s )