From f5273b29f60826b693b45404a8a428d3f1d1bda5 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 19 Oct 2024 11:13:54 -0400 Subject: Improved support for interactive flowgraphs. --- python/flowgraph.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'python') diff --git a/python/flowgraph.py b/python/flowgraph.py index c26b20a7..e661fff8 100644 --- a/python/flowgraph.py +++ b/python/flowgraph.py @@ -770,6 +770,24 @@ class FlowGraph: def shows_secondary_reg_highlighting(self, value): self.set_option(FlowGraphOption.FlowGraphShowsSecondaryRegisterHighlighting, value) + @property + def is_addressable(self): + """Set if flow graph should make use of address information""" + return self.is_option_set(FlowGraphOption.FlowGraphIsAddressable) + + @is_addressable.setter + def is_addressable(self, value): + self.set_option(FlowGraphOption.FlowGraphIsAddressable, value) + + @property + def is_workflow_graph(self): + """Set if flow graph should be treated as a workflow graph""" + return self.is_option_set(FlowGraphOption.FlowGraphIsWorkflowGraph) + + @is_workflow_graph.setter + def is_workflow_graph(self, value): + self.set_option(FlowGraphOption.FlowGraphIsWorkflowGraph, value) + def layout(self, callback=None): """ ``layout`` starts rendering a graph for display. Once a layout is complete, each node will contain -- cgit v1.3.1