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())
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())
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())