From 8826b87bb56ecbb936c89171f4a06ddcdbd9bd7e Mon Sep 17 00:00:00 2001 From: looooo Date: Sat, 14 Dec 2019 15:09:39 +0100 Subject: [PATCH] garphics: fix renamed function --- pivy/graphics/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pivy/graphics/__init__.py b/pivy/graphics/__init__.py index c92a868f..8c3b156a 100644 --- a/pivy/graphics/__init__.py +++ b/pivy/graphics/__init__.py @@ -1,5 +1,5 @@ from pivy import coin -from pivy.utils import getPointOnScreen +from pivy.utils import get_point_on_screen from .colors import COLORS from .plot import plot from .mesh import simple_quad_mesh, simple_poly_mesh @@ -319,8 +319,7 @@ def select_all_cb(self, attr, event_callback): def cursor_pos(self, event): pos = event.getPosition() - # print(list(getPointOnScreen1(self.render_manager, pos))) - return getPointOnScreen(self.render_manager, pos) + return get_point_on_screen(self.render_manager, pos) def constrained_vector(self, vector):