- UI workflow improvements

- Remove specific item
-
This commit is contained in:
bklronin
2024-06-15 23:03:27 +02:00
parent 055a90b62e
commit 92a870e834
5 changed files with 472 additions and 343 deletions

View File

@@ -9,10 +9,14 @@ class SnapLineWidget(QWidget):
self.points = []
self.selected_line = None
self.snapping_range = 20 # Range in pixels for snapping
self.line_mode = False
def set_points(self, points: list):
self.points = points
#self.update()
def mousePressEvent(self, event):
if event.button() == Qt.LeftButton :
if event.button() == Qt.LeftButton and self.line_mode:
self.points.append(event.pos())
self.update()