def __init__(self): QGraphicsRectItem.__init__(self) pen = QPen(QColor(Qt.blue)) pen.setWidth(6) self.setPen(pen) self.setZValue(ZValues.markerZ) self._board = None self.hide()
def __init__(self): QGraphicsRectItem.__init__(self) pen = QPen(QColor(Qt.blue)) pen.setWidth(6) self.setPen(pen) self.setZValue(ZValues.marker) self._board = None self.hide()
def __init__(self, side): QGraphicsRectItem.__init__(self, side) self.side = side self.font = QFont() self.font.setPointSize(48) self.height = 62 self.width = 200 self.msg = None self.setText('')
def __init__(self, width, height, tileset, boardRotation=0): QGraphicsRectItem.__init__(self) self.uiTiles = [] self.isHandBoard = False self._focusTile = None self.__prevPos = 0 self._noPen() self.tileDragEnabled = False self.setRotation(boardRotation) self._lightSource = 'NW' self.__xWidth = 0 self.__xHeight = 0 self.__yWidth = 0 self.__yHeight = 0 self.__fixedWidth = width self.__fixedHeight = height self._tileset = None self.tileset = tileset self.level = 0 Internal.Preferences.addWatch('showShadows', self.showShadowsChanged)