[Bf-python] How to get noticed about script end ?
Steven Truppe
admin at byteshelter.org
Mon Feb 9 21:13:06 CET 2009
I found a smart solution to the problem:
Python offers the __del__ method which acts as a destructor ! So when my
global class is destroyed i can unload all images my script has load there!
This also works with the keyboard shortcuts to quit a python gui script :).
Maybe someone find it usefull.
Steven Truppe
Steven Truppe schrieb:
> Hi everyone,
>
> is there a way a gui script get noticed about the ctrl+q event somehow ?
> or another way to run some code before the quit stops ?
>
> I have the problem that i'm loading a bitmap for every new font i'm
> unsing (bitmap font module from koi-ui) and i want to unload the images
> before the script quits.
>
> Hope there is a solution,
>
> Steven Truppe
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
>
>
More information about the Bf-python
mailing list