示例#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
示例#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)