def _init_canvas(self, parent): layout = QtWidgets.QHBoxLayout() parent.addLayout(layout) self.sagittal_canvas = widgets.SagittalCanvas(self, plot_points=True, horizontal_nav=True) self.sagittal_canvas.title(self.params.subtitle) layout.addWidget(self.sagittal_canvas) self.axial_canvas = widgets.AxialCanvas(self, plot_points=True, crosshair=True) self.axial_canvas.plot_points() layout.addWidget(self.axial_canvas) self.axial_canvas.point_selected_signal.connect(self.on_select_point) self.sagittal_canvas.point_selected_signal.connect(self.on_select_slice)
def _init_canvas(self, parent): layout = QtGui.QHBoxLayout() self.sagittal_canvas = widgets.SagittalCanvas(self, plot_points=True, plot_position=True) layout.addWidget(self.sagittal_canvas) self.axial_canvas = widgets.AxialCanvas(self, crosshair=True) self.axial_canvas.plot_points() layout.addWidget(self.axial_canvas) self.axial_canvas.point_selected_signal.connect(self.select_point) self.sagittal_canvas.point_selected_signal.connect(self.on_select_slice) parent.addLayout(layout)