def onComponentActivated(self,evt): self.theSelectedIdx = evt.GetIndex() dlg = ComponentDialog(self) inParameters = self.theComponents[self.theSelectedIdx] dlg.load(inParameters) if (dlg.ShowModal() == armid.COMPONENT_BUTTONCOMMIT_ID): outParameters = dlg.parameters() self.theComponents[self.theSelectedIdx] = outParameters self.SetStringItem(self.theSelectedIdx,0,outParameters.name()) self.SetStringItem(self.theSelectedIdx,1,outParameters.description())
def onComponentActivated(self,evt): self.theSelectedIdx = evt.GetIndex() dlg = ComponentDialog(self) inParameters = self.theComponents[self.theSelectedIdx] dlg.load(inParameters) if (dlg.ShowModal() == COMPONENT_BUTTONCOMMIT_ID): outParameters = dlg.parameters() self.theComponents[self.theSelectedIdx] = outParameters self.SetStringItem(self.theSelectedIdx,0,outParameters.name()) self.SetStringItem(self.theSelectedIdx,1,outParameters.description())