core.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:core-framework 作者: RedhawkSDR 项目源码 文件源码
def __newApplication(self, app):
        prof_path = app._get_profile()

        sadFile = self.fileManager.open(prof_path, True)
        sadContents = sadFile.read(sadFile.sizeOf())
        sadFile.close()
        doc_sad = parsers.sad.parseString(sadContents)
        comp_list = app._get_componentNamingContexts()
        waveform_ns_name = ''
        if len(comp_list) > 0:
            comp_ns_name = comp_list[0].elementId
            waveform_ns_name = comp_ns_name.split('/')[1]

        app_name = app._get_name()
        if app_name[:7]=='OSSIE::':
            waveform_name = app_name[7:]
        else:
            waveform_name = app_name
        waveform_entry = App(name=waveform_name, domain=weakref.proxy(self), sad=doc_sad)
        waveform_entry.ref = app
        waveform_entry.ns_name = waveform_ns_name
        return waveform_entry
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号