Home > Mobile >  Drawing a point on a Label that is on top of a canvas
Drawing a point on a Label that is on top of a canvas

Time:12-21

Label (there is an image) is located on the canvas throughout the volume. How can I put dots on top of label (they are apparently placed on canvas, but the image overlaps them. For example, I gave the interface of my program and circled the right placeenter image description here

Please help me, I've been sitting with this problem for a long time, I can't get away from Label I need to use it. I also get the coordinates of the points from the picture, but you can't draw on the label

CodePudding user response:

Label (there is an image) is located on the canvas throughout the volume. How can I put dots on top of label

You cannot draw on top of widgets embedded in a canvas. If you're using a Label just to embed an image, you can instead create an image object using the canvas method create_image. You can then draw items on top of the image.

  • Related