diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2015-11-20 17:28:17 +0100 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-02-17 19:55:16 +0100 |
commit | 9f5ef34ac05de070a99fae07eb1a8087ba60a653 (patch) | |
tree | 44ab20b78404c94e85689b8511521e7456d58e3d /grc/python/Platform.py | |
parent | 64f3b70cf135a8641a0271ee27b431e05a8df97b (diff) |
grc-refactor: move grc.base to grc.python.base
Diffstat (limited to 'grc/python/Platform.py')
-rw-r--r-- | grc/python/Platform.py | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/grc/python/Platform.py b/grc/python/Platform.py index 5932818c1e..e6b17fe3f7 100644 --- a/grc/python/Platform.py +++ b/grc/python/Platform.py @@ -19,27 +19,20 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import os import sys - from gnuradio import gr -from .. base.Platform import Platform as _Platform -from .. gui.Platform import Platform as _GUIPlatform -from .. gui import Messages +from .base.Platform import Platform as _Platform from . import extract_docs -from .FlowGraph import FlowGraph as _FlowGraph -from .Connection import Connection as _Connection -from .Block import Block as _Block -from .Port import Port as _Port -from .Param import Param as _Param -from .Generator import Generator from .Constants import ( HIER_BLOCKS_LIB_DIR, BLOCK_DTD, DEFAULT_FLOW_GRAPH, BLOCKS_DIRS, - PREFS_FILE, PREFS_FILE_OLD, CORE_TYPES + PREFS_FILE, CORE_TYPES, PREFS_FILE_OLD, ) +from .Generator import Generator +from .. gui import Messages -class Platform(_Platform, _GUIPlatform): +class Platform(_Platform): def __init__(self): """ Make a platform for gnuradio. @@ -72,11 +65,7 @@ class Platform(_Platform, _GUIPlatform): generator=Generator, colors=[(name, color) for name, key, sizeof, color in CORE_TYPES], ) - self._move_old_pref_file() - _GUIPlatform.__init__( - self, - prefs_file=PREFS_FILE - ) + self._auto_hier_block_generate_chain = set() def _save_docstring_extraction_result(self, key, docstrings): @@ -164,12 +153,3 @@ class Platform(_Platform, _GUIPlatform): self.load_block_xml(generator.get_file_path_xml()) return True - - ############################################## - # Constructors - ############################################## - FlowGraph = _FlowGraph - Connection = _Connection - Block = _Block - Port = _Port - Param = _Param |