I create an image in an xypanel in code, it all works quite nicely.
I can resize up and down by manipulating the image’s width and height properties
Can I move the image around the xypanel by changing the x/y values? I don’t think those are properties available to me once that image component has been placed on the xypanel.
I’ve not used x/y panels myself, so there might be a more sophisticated method, but as a workaround you could remove the image from the x/y panel and re-add it at a different location.
2 Likes
Precisely what I’m doing! Since it’s all front-end, it’s quite fast. XYPanel let’s me let the user add an image(multiple images) and resize them and move them around… .I’m basically re-creating powerpoint light
1 Like
How about a function that
- Adds the component to the XYPanel, and
- Logs the coordinates in a
dict
? For later reference.
That’s actually what I’m moving to… using the tag element to store a dictionary. So far this tool is shaping up nicely!