Esempio n. 1
0
 def setImage(self):
     if self.faceUp:
         image = PlayingCardGlobals.getImage(self.style, self.suit,
                                             self.rank)
     else:
         image = PlayingCardGlobals.getBack(self.style)
     self['image'] = image
Esempio n. 2
0
 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)