-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
DraggableVertex
to its own file (#191)
- Loading branch information
1 parent
8bdae81
commit 1e68e32
Showing
3 changed files
with
28 additions
and
36 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
brainframe_qt/ui/dialogs/task_configuration/widgets/draggable_vertex.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from PyQt5.QtGui import QColor | ||
|
||
from brainframe_qt.ui.resources.video_items.base import CircleItem, VideoItem | ||
|
||
|
||
class DraggableVertex(CircleItem): | ||
# TODO: Tie to size of scene | ||
DEFAULT_RADIUS = 10 | ||
DEFAULT_BORDER_THICKNESS = 5 | ||
DEFAULT_COLOR = QColor(200, 50, 50) | ||
|
||
def __init__(self, position: VideoItem.PointType, *, parent: VideoItem): | ||
super().__init__(position, color=self.DEFAULT_COLOR, | ||
radius=self.DEFAULT_RADIUS, | ||
border_thickness=self.DEFAULT_BORDER_THICKNESS, | ||
parent=parent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters