Skip to content

Commit

Permalink
Pyside6: search problem 1
Browse files Browse the repository at this point in the history
  • Loading branch information
sozykinsa committed Jul 25, 2024
1 parent 50c5765 commit 81834f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/qtbased/guiopengl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 81834f0

Please sign in to comment.