def setImage(self): if self.faceUp: image = PlayingCardGlobals.getImage(self.style, self.suit, self.rank) else: image = PlayingCardGlobals.getBack(self.style) self['image'] = image
def setImage(self): if self.faceUp: image = PlayingCardGlobals.getImage(self.style, self.suit, self.rank) else: image = PlayingCardGlobals.getBack(self.style) if self.image: self.image.removeNode() self.image = image.copyTo(self)