Register a function to be called after all pending trace and layout edit operations have completed If there are no pending edit operations then function is called immediately Parameters ---------- fn : callable Function of zero a
(self, fn)
| 752 | # Callbacks |
| 753 | # --------- |
| 754 | def on_edits_completed(self, fn): |
| 755 | """ |
| 756 | Register a function to be called after all pending trace and layout |
| 757 | edit operations have completed |
| 758 | |
| 759 | If there are no pending edit operations then function is called |
| 760 | immediately |
| 761 | |
| 762 | Parameters |
| 763 | ---------- |
| 764 | fn : callable |
| 765 | Function of zero arguments to be called when all pending edit |
| 766 | operations have completed |
| 767 | """ |
| 768 | if self._layout_edit_in_process or self._trace_edit_in_process: |
| 769 | self._waiting_edit_callbacks.append(fn) |
| 770 | else: |
| 771 | fn() |
| 772 | |
| 773 | # Validate No Frames |
| 774 | # ------------------ |