[Bf-python] Callback types

Michael Reimpell m.reimpell at tu-bs.de
Sun Jan 16 02:51:23 CET 2005


Hi,

In contrast to Blender.Draw.Register the functions Blender.Window.FileSelector
and Blender.Window.ImageSelector don't accept methods (type 'instancemethod') as
callbacks. The attached patch solves this problem. You can test the patch with
the attached Python script.

Regards,
Michael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20050116/cd2a505b/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callbacks.py
Type: text/x-python
Size: 1667 bytes
Desc: not available
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20050116/cd2a505b/attachment.py>


More information about the Bf-python mailing list