I am trying to use images in PushButton icons.
PushButton:
icon = Icon(images=[IconImage(image=load_image('my_image.svg'))])
The image is displayed, but it is neither the size of the image nor does it scale with the PushButton size (as defined in constraints). I tried setting the raw_size and size for the Image but that had no affect. It is displayed very small, like 6x6, but the image in 64x64 and the PushButton is 96x100. I tried with both an svg and a png.
I am trying to use images in PushButton icons.
The image is displayed, but it is neither the size of the image nor does it scale with the PushButton size (as defined in constraints). I tried setting the
raw_sizeandsizefor the Image but that had no affect. It is displayed very small, like 6x6, but the image in 64x64 and the PushButton is 96x100. I tried with both an svg and a png.