diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-21 11:30:42 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-29 15:45:08 +0200 |
commit | 6b99b6fded94ae1ed8421c624246362e7925fb08 (patch) | |
tree | b65ede7ccc1833714b97fb4036faa377a282a001 /grc/gui/FlowGraph.py | |
parent | 980ab9d2b0455cd0a39730617435774df4af658b (diff) |
grc: refactor: replace get_enabled by prop
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r-- | grc/gui/FlowGraph.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py index da88636e1b..a3dd379074 100644 --- a/grc/gui/FlowGraph.py +++ b/grc/gui/FlowGraph.py @@ -456,13 +456,13 @@ class FlowGraph(Element, _Flowgraph): hide_variables = Actions.TOGGLE_HIDE_VARIABLES.get_active() def draw_order(elem): - return elem.highlighted, elem.is_block, elem.get_enabled() + return elem.highlighted, elem.is_block, elem.enabled elements = sorted(self.get_elements(), key=draw_order) del self._elements_to_draw[:] for element in elements: - if hide_disabled_blocks and not element.get_enabled(): + if hide_disabled_blocks and not element.enabled: continue # skip hidden disabled blocks and connections if hide_variables and (element.is_variable or element.is_import): continue # skip hidden disabled blocks and connections @@ -471,7 +471,7 @@ class FlowGraph(Element, _Flowgraph): def _drawables(self): show_comments = Actions.TOGGLE_SHOW_BLOCK_COMMENTS.get_active() for element in self._elements_to_draw: - if element.is_block and show_comments and element.get_enabled(): + if element.is_block and show_comments and element.enabled: yield element.draw_comment for element in self._elements_to_draw: yield element.draw |