mirror of
https://github.com/MolotovCherry/virtual-display-rs.git
synced 2025-09-04 15:17:53 +00:00
Update py documentation
This commit is contained in:
@@ -131,8 +131,10 @@ client.persist()
|
||||
# you can ask to be notified.
|
||||
# this represents the complete current state of the driver
|
||||
#
|
||||
# DriverClient.receive(Optional[Callable[list[Monitor], None]] = None)
|
||||
client.receive(lambda d: print(d))
|
||||
# once the subscriber is dropped, the function will no longer receive updates
|
||||
#
|
||||
# DriverClient.receive(Callable[list[Monitor], None])
|
||||
subscriber = client.receive(lambda d: print(d))
|
||||
# one way to use this might be to auto update your driver instance
|
||||
def set_monitors(data):
|
||||
client.monitors = data
|
||||
|
Reference in New Issue
Block a user