def setPos(self, *args, **kwargs): ShipFrame.setPos(self, *args, **kwargs) if self.statTrigger: self.statTrigger.reparentTo(self) self.statTrigger.setPos(self.statFrame.getPos()) self.statTrigger.wrtReparentTo(self.getParent()) self.reparentTo(self.getParent())
def setPos(self, *args, **kwargs): ShipFrame.setPos(self, *args, **args) if self.statTrigger: self.statTrigger.reparentTo(self) self.statTrigger.setPos(self.statFrame.getPos()) self.statTrigger.wrtReparentTo(self.getParent()) self.reparentTo(self.getParent())