53 |
def issue_messages(self, issue_layer, issue_shape): |
def issue_messages(self, issue_layer, issue_shape): |
54 |
"""Internal: Issue SHAPES_SELECTED and LAYER_SELECTED messages |
"""Internal: Issue SHAPES_SELECTED and LAYER_SELECTED messages |
55 |
|
|
56 |
If the issue_layer argument is true, ussue a LAYER_SELECTED |
If the issue_layer argument is true, issue a LAYER_SELECTED |
57 |
message. If issue_shape is true issue a SHAPES_SELECTED message. |
message. If issue_shape is true issue a SHAPES_SELECTED message. |
58 |
""" |
""" |
59 |
if issue_layer: |
if issue_layer: |
91 |
""" |
""" |
92 |
return self.shapes |
return self.shapes |
93 |
|
|
94 |
|
def HasSelectedShapes(self): |
95 |
|
"""Return true iff at least one shape is selected.""" |
96 |
|
return len(self.shapes) > 0 |
97 |
|
|
98 |
def SelectLayer(self, layer): |
def SelectLayer(self, layer): |
99 |
"""Select the given layer. |
"""Select the given layer. |
100 |
|
|