Merge branch 'master' into older_libs

older_libs
LEdoian 2 years ago
commit d67d7f3027

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

Loading…
Cancel
Save