mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added ability to set mouse release callback
This commit is contained in:
parent
f0b0f2a9f9
commit
053c93f13d
1 changed files with 4 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ class Separator(QtWidgets.QFrame):
|
|||
|
||||
|
||||
class ProxyLabelWidget(QtWidgets.QWidget):
|
||||
def __init__(self, label, mouse_release_callback, parent=None):
|
||||
def __init__(self, label, mouse_release_callback=None, parent=None):
|
||||
super(ProxyLabelWidget, self).__init__(parent)
|
||||
|
||||
self.mouse_release_callback = mouse_release_callback
|
||||
|
|
@ -38,6 +38,9 @@ class ProxyLabelWidget(QtWidgets.QWidget):
|
|||
|
||||
self.label_widget = label_widget
|
||||
|
||||
def set_mouse_release_callback(self, callback):
|
||||
self.mouse_release_callback = callback
|
||||
|
||||
def setText(self, text):
|
||||
self.label_widget.setText(text)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue