当前位置: 首页>>代码示例>>Python>>正文


Python ExtendedParameter.reloadParams方法代码示例

本文整理汇总了Python中openadc.ExtendedParameter.ExtendedParameter.reloadParams方法的典型用法代码示例。如果您正苦于以下问题:Python ExtendedParameter.reloadParams方法的具体用法?Python ExtendedParameter.reloadParams怎么用?Python ExtendedParameter.reloadParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在openadc.ExtendedParameter.ExtendedParameter的用法示例。


在下文中一共展示了ExtendedParameter.reloadParams方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: reloadParamListPreprocessing

# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
    def reloadParamListPreprocessing(self, list=None):
        """Reload the parameter lists, ensuring GUI is showing correct options to user"""

        plist = []
        for p in self.preprocessingListGUI:
            if p:
                for item in p.paramList():
                    plist.append(item)
        ExtendedParameter.reloadParams(plist, self.preprocessingParamTree)
开发者ID:92briank,项目名称:chipwhisperer,代码行数:11,代码来源:ChipWhispererAnalyzer.py

示例2: loadCfg

# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
    def loadCfg(self, fname=None):
	if fname is None:
	        fname, _ = QFileDialog.getOpenFileName(self, 'Open file',QSettings().value("trace_last_file"),'*.cfg')

        if fname:
            QSettings().setValue("trace_last_file", fname)

        if fname:
            self.modName.setEnabled(False)
            
            #Figure out what format this is in
            tc = TraceContainerConfig(fname)
            fmt = tc.attr("format")
            
            #Generate a temp class for getting parameters from
            fmtclass = TraceContainerTypes.TraceContainerFormatList[fmt]
            
            #Use temp class to finally initilize our "good" version
            self.tmanager = fmtclass( fmtclass.getParamsClass(openMode=True) )
            self.tmanager.config.loadTrace(fname)
            self.tmanager.loadAllConfig()
            ExtendedParameter.reloadParams(self.tmanager.getParams.paramList(), self.paramTree)
开发者ID:92briank,项目名称:chipwhisperer,代码行数:24,代码来源:TraceManagerImport.py

示例3: reloadParamList

# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
    def reloadParamList(self, lst=None):
        """Reload parameter trees in a given list, ensuring GUI matches loaded modules."""

        ExtendedParameter.reloadParams(self.paramList(), self.paramTree)
开发者ID:92briank,项目名称:chipwhisperer,代码行数:6,代码来源:ChipWhispererAnalyzer.py

示例4: reloadParamListResults

# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
    def reloadParamListResults(self, lst=None):
        """Reload parameter tree for results settings, ensuring GUI matches loaded modules."""

        ExtendedParameter.reloadParams(self.results.paramList(), self.resultsParamTree)
开发者ID:92briank,项目名称:chipwhisperer,代码行数:6,代码来源:ChipWhispererAnalyzer.py

示例5: reloadAttackParamList

# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
    def reloadAttackParamList(self, list=None):
        """Reloads parameter tree in GUI when attack changes"""

        ExtendedParameter.reloadParams(self.attack.paramList(), self.attackParamTree)
开发者ID:92briank,项目名称:chipwhisperer,代码行数:6,代码来源:ChipWhispererAnalyzer.py

示例6: reloadParameters

# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
 def reloadParameters(self):
     ExtendedParameter.reloadParams(self.paramList(), self.paramTree)
开发者ID:92briank,项目名称:chipwhisperer,代码行数:4,代码来源:GlitchExplorerDialog.py

示例7: traceTypeChanged

# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
 def traceTypeChanged(self, newindx):
     self.openCfg.setEnabled(False)
     newTT = self.modName.itemData(newindx)        
     self.tmanagerParams = newTT.getParamsClass(openMode=True)   
     self.tmanager = newTT(self.tmanagerParams)
     ExtendedParameter.reloadParams(self.tmanagerParams.paramList(), self.paramTree)
开发者ID:92briank,项目名称:chipwhisperer,代码行数:8,代码来源:TraceManagerImport.py

示例8: updateParamTree

# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
 def updateParamTree(self, paramTree, changelist, name):
     paramlist = []
     for k in changelist:
         paramlist.append({'name':k})
     params = Parameter.create(name=name, type='group', children=paramlist)
     ExtendedParameter.reloadParams([params], paramTree)
开发者ID:92briank,项目名称:chipwhisperer,代码行数:8,代码来源:ProjectFormat.py


注:本文中的openadc.ExtendedParameter.ExtendedParameter.reloadParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。