lock

Contents

lock#

method

Lockable.lock(user: str = '') bool[source]#

Locks access to the object’s attributes.

Parameters:
userstr, optional

The user who has locked the device. Useful when a device is locked and another user wants to know who is using it.