示例#1
0
文件: uitile.py 项目: KDE/kajongg
 def __init__(self, tile, xoffset=0.0, yoffset=0.0, level=0):
     QGraphicsObject.__init__(self)
     if not isinstance(tile, Tile):
         tile = Tile(tile)
     self._tile = tile
     self._boundingRect = None
     self._cross = False
     self.setCacheMode(QGraphicsItem.DeviceCoordinateCache)
     # while moving the tile we use ItemCoordinateCache, see
     # Tile.setActiveAnimation
     self.__board = None
     self.setClippingFlags()
     self.__xoffset = xoffset
     self.__yoffset = yoffset
     self.__dark = False
     self.level = level
     self.activeAnimation = dict()  # key is the property name
     self.queuedAnimations = []
示例#2
0
文件: uitile.py 项目: KDE/kajongg
 def _set_rotation(self, rotation):
     """setter for property rotation"""
     QGraphicsObject.setRotation(self, rotation)
示例#3
0
文件: uitile.py 项目: KDE/kajongg
 def _set_scale(self, scale):
     """setter for property scale"""
     QGraphicsObject.setScale(self, scale)
示例#4
0
文件: uitile.py 项目: KDE/kajongg
 def _get_rotation(self):
     """getter for property rotation"""
     return QGraphicsObject.rotation(self)
示例#5
0
文件: uitile.py 项目: KDE/kajongg
 def _set_pos(self, pos):
     """setter for property pos"""
     QGraphicsObject.setPos(self, pos)
示例#6
0
文件: uitile.py 项目: KDE/kajongg
 def _get_scale(self):
     """getter for property scale"""
     return QGraphicsObject.scale(self)
示例#7
0
 def _set_rotation(self, rotation):
     """setter for property rotation"""
     QGraphicsObject.setRotation(self, rotation)
示例#8
0
文件: uitile.py 项目: KDE/kajongg
 def _get_pos(self):
     """getter for property pos"""
     return QGraphicsObject.pos(self)
示例#9
0
 def _get_rotation(self):
     """getter for property rotation"""
     return QGraphicsObject.rotation(self)
示例#10
0
 def _set_scale(self, scale):
     """setter for property scale"""
     QGraphicsObject.setScale(self, scale)
示例#11
0
 def _get_scale(self):
     """getter for property scale"""
     return QGraphicsObject.scale(self)
示例#12
0
 def _set_pos(self, pos):
     """setter for property pos"""
     QGraphicsObject.setPos(self, pos)
示例#13
0
 def _get_pos(self):
     """getter for property pos"""
     return QGraphicsObject.pos(self)