def InsertComp(self, num, FC): EC = ExComp() FC.ECS.append(EC) FC.CL.insertWidget(num, EC) EC.Fc = FC EC.AddCompSignal.connect(self.AddCompSlot) EC.UpdateComp(self.Sc.rtclist, self.Sc.rtclist2) self.UpdateSize()
def AddComp(self, FC): EC = ExComp() FC.ECS.append(EC) FC.CL.addWidget(EC) EC.Fc = FC EC.AddCompSignal.connect(self.AddCompSlot) EC.UpdateComp(self.Sc.rtclist, self.Sc.rtclist2) self.UpdateSize()