``layout_and_wait`` starts rendering a graph for display, and waits for the graph to be ready to display. After this function returns, each node will contain coordinates and extents that can be used to render a graph with minimum additional computation. Do not use this API on the UI thread
(self)
| 787 | self._wait_cond.release() |
| 788 | |
| 789 | def layout_and_wait(self): |
| 790 | """ |
| 791 | ``layout_and_wait`` starts rendering a graph for display, and waits for the graph to be ready to |
| 792 | display. After this function returns, each node will contain coordinates and extents that can be |
| 793 | used to render a graph with minimum additional computation. |
| 794 | |
| 795 | Do not use this API on the UI thread (use :func:`layout` with a callback instead). |
| 796 | """ |
| 797 | self._wait_cond = threading.Lock() |
| 798 | self._wait_cond.acquire() |
| 799 | _ = self.layout(self._wait_complete) |
| 800 | |
| 801 | self._wait_cond.acquire() |
| 802 | self._wait_cond.release() |
| 803 | |
| 804 | def get_nodes_in_region(self, left, top, right, bottom): |
| 805 | count = ctypes.c_ulonglong() |
no test coverage detected