allow locking of all objects
This commit is contained in:
parent
09711116a7
commit
e0db621595
14 changed files with 290 additions and 36 deletions
|
|
@ -77,7 +77,10 @@ class Text(Shape):
|
|||
rotation: float = 0.0,
|
||||
mirrored: Tuple[bool] = (False, False),
|
||||
layer: int = 0,
|
||||
dose: float = 1.0):
|
||||
dose: float = 1.0,
|
||||
locked: bool = False,
|
||||
):
|
||||
self.unlock()
|
||||
self.identifier = ()
|
||||
self.offset = offset
|
||||
self.layer = layer
|
||||
|
|
@ -87,6 +90,7 @@ class Text(Shape):
|
|||
self.rotation = rotation
|
||||
self.font_path = font_path
|
||||
self.mirrored = mirrored
|
||||
self.locked = locked
|
||||
|
||||
def __deepcopy__(self, memo: Dict = None) -> 'Text':
|
||||
memo = {} if memo is None else memo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue