Oct-03-2023, 03:49 AM
(Oct-03-2023, 03:33 AM)deanhystad Wrote: "size". my_image.cget("size") returns the size attribute (width, height) of one of the images. The light and dark images have to be the same size, so it doesn't matter which.Thank You. I missed the mention in documentation that images are PIL objects at first read.
You could also ask for one of the images and then ask it for the size.
image.cget("light_image").sizeThat is how you know to use "size" as the attribute for cget. PIL.Image.size returns the size of the image. CTkImage.cget("size") returns the size attribute of the light or dark image.