-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathListener.py
More file actions
39 lines (32 loc) · 856 Bytes
/
Listener.py
File metadata and controls
39 lines (32 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# All referenced (missing descriptions)
from Live.Base import Vector
class ListenerVector(Vector):
"""
A read-only container for accessing a list of listeners.
"""
class ListenerHandler:
"""
This class represents a Python listener when connected to a Live property.
"""
@property
def listener_func(self):
"""
:return: The original function
"""
return
@property
def listener_self(self):
"""
:return: The weak reference to original self if it was a bound method.
"""
return
@property
def name(self) -> str:
"""
:return: Prints the name of the property that this listener is connected to.
"""
return ""
def disconnect(self):
"""
Disconnects the listener from its property.
"""