From 81834f03ba2169fc3fc8356491c7ad50f0676885 Mon Sep 17 00:00:00 2001 From: Sergey Sozykin Date: Thu, 25 Jul 2024 21:05:52 +0500 Subject: [PATCH] Pyside6: search problem 1 --- src/qtbased/guiopengl.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/qtbased/guiopengl.py b/src/qtbased/guiopengl.py index ee00135..61581f2 100644 --- a/src/qtbased/guiopengl.py +++ b/src/qtbased/guiopengl.py @@ -296,14 +296,15 @@ def paintGL(self): pass def get_atom_on_screen(self): - print("click3") + print("-----> ") + print("self.x_scene, self.y_scene: ", self.x_scene, self.y_scene) point = self.get_point_in_3d(self.x_scene, self.y_scene) - print("point ", point) + print("self.selected_atom ", self.selected_atom) old_selected = self.selected_atom print("self.scale_factor ", self.scale_factor) ind, min_r = self.nearest_point(self.scale_factor, self.main_model.atoms, point) self.update_selected_atom(ind, min_r) - print("min_r ", min_r) + print("int, min_r ", ind, min_r) if min_r < 1.4: if self.selected_atom >= 0: