diff --git a/Wrappers/Python/ccpi/viewer/ui/main_windows.py b/Wrappers/Python/ccpi/viewer/ui/main_windows.py index 5fd2fe53..2bae38d3 100644 --- a/Wrappers/Python/ccpi/viewer/ui/main_windows.py +++ b/Wrappers/Python/ccpi/viewer/ui/main_windows.py @@ -5,6 +5,7 @@ import ccpi.viewer.viewerLinker as vlink import vtk + vtk.vtkObject.GlobalWarningDisplayOn() vtk.vtkOutputWindow.GetInstance().SetGlobalWarningDisplay(True) from ccpi.viewer import CILViewer2D, CILViewer diff --git a/Wrappers/Python/examples/TwoLinkedViewersCentralWidget.py b/Wrappers/Python/examples/TwoLinkedViewersCentralWidget.py index ae7b36c8..e9d5e2af 100644 --- a/Wrappers/Python/examples/TwoLinkedViewersCentralWidget.py +++ b/Wrappers/Python/examples/TwoLinkedViewersCentralWidget.py @@ -16,8 +16,14 @@ def __init__(self, parent=None): QtWidgets.QMainWindow.__init__(self, parent) #self.resize(800,600) - self.frame1 = QCILViewerWidget(parent, viewer=viewer2D, shape=(600, 600), interactorStyle=vlink.Linked2DInteractorStyle) - self.frame2 = QCILViewerWidget(parent, viewer=viewer3D, shape=(600, 600), interactorStyle=vlink.Linked3DInteractorStyle) + self.frame1 = QCILViewerWidget(parent, + viewer=viewer2D, + shape=(600, 600), + interactorStyle=vlink.Linked2DInteractorStyle) + self.frame2 = QCILViewerWidget(parent, + viewer=viewer3D, + shape=(600, 600), + interactorStyle=vlink.Linked3DInteractorStyle) head = example_data.HEAD.get() diff --git a/Wrappers/Python/examples/image_reader_and_writer.py b/Wrappers/Python/examples/image_reader_and_writer.py index 6d80c9d8..dc9236c8 100644 --- a/Wrappers/Python/examples/image_reader_and_writer.py +++ b/Wrappers/Python/examples/image_reader_and_writer.py @@ -20,6 +20,7 @@ from ccpi.viewer.iviewer import iviewer import numpy as np import vtk + vtk.vtkObject.GlobalWarningDisplayOn() vtk.vtkOutputWindow.GetInstance().SetGlobalWarningDisplay(True)