diff options
Diffstat (limited to 'grc/model/Element.py')
-rw-r--r-- | grc/model/Element.py | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/grc/model/Element.py b/grc/model/Element.py index 6716cd619c..c999d6704f 100644 --- a/grc/model/Element.py +++ b/grc/model/Element.py @@ -90,34 +90,17 @@ class Element(object): return list() ############################################## - # Type testing methods + # Type testing ############################################## - def is_element(self): - return True - - def is_platform(self): - return False - - def is_flow_graph(self): - return False - - def is_connection(self): - return False - - def is_block(self): - return False + is_platform = False - def is_dummy_block(self): - return False + is_flow_graph = False - def is_source(self): - return False + is_block = False + is_dummy_block = False - def is_sink(self): - return False + is_connection = False - def is_port(self): - return False + is_port = False - def is_param(self): - return False + is_param = False |