Пример #1
0
 def setEnabled(self, enabled):
     """enable/disable this board"""
     if isAlive(self):
         # aborting a running game: the underlying C++ object might
         # already have been destroyed
         self.tileDragEnabled = (enabled
                                 and self.player == self.player.game.myself)
         QGraphicsRectItem.setEnabled(self, enabled)
Пример #2
0
 def setEnabled(self, enabled):
     """enable/disable this board"""
     if isAlive(self):
         # aborting a running game: the underlying C++ object might
         # already have been destroyed
         self.tileDragEnabled = (
             enabled
             and self.player == self.player.game.myself)
         QGraphicsRectItem.setEnabled(self, enabled)
Пример #3
0
 def setEnabled(self, enabled):
     """enable/disable this board"""
     self.tileDragEnabled = enabled
     QGraphicsRectItem.setEnabled(self, enabled)
Пример #4
0
 def setEnabled(self, enabled):
     """enable/disable this board"""
     self.tileDragEnabled = enabled
     QGraphicsRectItem.setEnabled(self, enabled)