How to delete custom images/icons via python?
Posted: Saturday 13 September 2025 16:12
Hi,
At onStop, I am trying to delete the custom images I added at startup of the plugin.
According to the Wiki :
However when I try the following:
I get the following error:
I could not find anything on the forum and also checked a lot of plugins for examples, without succes.
Any clue about what I am doing wrong?
Thanks!
At onStop, I am trying to delete the custom images I added at startup of the plugin.
According to the Wiki :
Code: Select all
Images['myPlugin'].Delete()However when I try the following:
Code: Select all
for image in Images:
Images[image].Delete()Code: Select all
Error: Image deletion failed, Image object is not associated with a plugin.Any clue about what I am doing wrong?
Thanks!