Skip to content

Commit

Permalink
Fix import PySide2 -> qtpy (#2065)
Browse files Browse the repository at this point in the history
* Fix import PySide2 -> qtpy

* Remove unnecessary print statements.
  • Loading branch information
talmo authored Dec 18, 2024
1 parent 7dd41de commit 55772ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sleap/gui/dialogs/frame_range.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Frame range dialog."""
from PySide2 import QtWidgets
from qtpy import QtWidgets
from sleap.gui.dialogs.formbuilder import FormBuilderModalDialog
from typing import Optional

Expand Down
4 changes: 1 addition & 3 deletions sleap/gui/widgets/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,6 @@ def mousePressEvent(self, event):

def mouseMoveEvent(self, event):
"""Custom event handler for mouse move."""
# print(event)
if self.dragParent:
self.parentObject().mouseMoveEvent(event)
else:
Expand All @@ -1601,7 +1600,6 @@ def mouseMoveEvent(self, event):

def mouseReleaseEvent(self, event):
"""Custom event handler for mouse release."""
# print(event)
self.unsetCursor()
if self.dragParent:
self.parentObject().mouseReleaseEvent(event)
Expand Down Expand Up @@ -1631,7 +1629,7 @@ def mouseDoubleClickEvent(self, event: QMouseEvent):
view.instanceDoubleClicked.emit(self.parentObject().instance, event)

def hoverEnterEvent(self, event):
print("QtNode: hover enter")
"""Custom event handler for mouse hover enter."""
return super().hoverEnterEvent(event)


Expand Down

0 comments on commit 55772ad

Please sign in to comment.