コード例 #1
0
 def show(self, form, *params):
     finalResiduesList = self.getResidues(form)
     provider = ListTreeProviderString(finalResiduesList)
     dlg = dialog.ListDialog(
         form.root, "Chain residues", provider,
         "Select one residue (residue number, "
         "residue name)")
     form.setVar('lastResidueToRemove', dlg.values[0].get())
コード例 #2
0
ファイル: wizards.py プロジェクト: scipion-em/scipion-em
    def show(self, form, *params):
        attrsList = self.getInputAttributes(form)
        finalAttrsList = []
        for i in attrsList:
            finalAttrsList.append(pwobj.String(i))
        provider = ListTreeProviderString(finalAttrsList)

        dlg = dialog.ListDialog(form.root, "Filter set", provider,
                                "Select one of the attributes")
        form.setVar('rankingField', dlg.values[0].get())
コード例 #3
0
    def show(self, form, *params):
        protocol = form.protocol
        try:
            listOfChains, listOfResidues = self.getModelsChainsStep(protocol)
        except Exception as e:
            print("ERROR: ", e)
            return

        self.editionListOfChains(listOfChains)
        finalChainList = []
        for i in self.chainList:
            finalChainList.append(pwobj.String(i))
        provider = ListTreeProviderString(finalChainList)
        dlg = dialog.ListDialog(
            form.root, "Model chains", provider,
            "Select one of the chains (model, chain, "
            "number of chain residues)")
        form.setVar('inputStructureChain', dlg.values[0].get())