Nov-18-2021, 01:37 PM
Hi all,
I'm trying to get my program to try to make a layout with an sg.Image element, however the file path is a variable so it can update the image in the window based on the user input. However I need a way that it doesn't crash when the image isnt in the folder. I've tried putting try and except statements in several places but wondered if there's another way?
Thanks,
James
I'm trying to get my program to try to make a layout with an sg.Image element, however the file path is a variable so it can update the image in the window based on the user input. However I need a way that it doesn't crash when the image isnt in the folder. I've tried putting try and except statements in several places but wondered if there's another way?
Thanks,
James