|
|
|
@ -143,6 +143,7 @@ def create_qgritems(at):
|
|
|
|
|
shape = QtWidgets.QGraphicsRectItem(-size/2, -size/2, size, size)
|
|
|
|
|
shape.setBrush(brush)
|
|
|
|
|
shape.setPos(x, y)
|
|
|
|
|
shape.setToolTip(rk)
|
|
|
|
|
label = QtWidgets.QGraphicsSimpleTextItem(rk, parent=shape)
|
|
|
|
|
label.setY(size*0.8)
|
|
|
|
|
# Centering:
|
|
|
|
@ -168,6 +169,7 @@ def create_qgritems(at):
|
|
|
|
|
shape = QtWidgets.QGraphicsRectItem(-size/2, -size/2, size, size)
|
|
|
|
|
shape.setBrush(brush)
|
|
|
|
|
shape.setPos(x, y)
|
|
|
|
|
shape.setToolTip(nk)
|
|
|
|
|
label = QtWidgets.QGraphicsSimpleTextItem(nk, parent=shape)
|
|
|
|
|
label.setY(size*0.8)
|
|
|
|
|
# Centering:
|
|
|
|
|