def register_tools(self): ImageDialog.register_tools(self) self.add_tool(SegmentTool, handle_final_shape_cb=self.draw_seg) self.DrawPoint = PointTool self.add_tool(self.DrawPoint, handle_final_shape_cb=self.draw_point) self.add_tool(RectangleTool, handle_final_shape_cb=self.draw_rect)
def register_tools(self): ImageDialog.register_tools(self) self.add_tool(PointTool, handle_final_shape_cb=self.draw_point)