[Bf-committers] Python Event Listeners and Notifiers

Martin Poirier theeth at yahoo.com
Wed Nov 3 03:16:19 CET 2010

--- On Mon, 11/1/10, Dan Eicher <dan at trollwerks.org> wrote:

> From: Dan Eicher <dan at trollwerks.org>
> Subject: [Bf-committers] Python Event Listeners and Notifiers
> To: "bf-blender developers" <bf-committers at blender.org>
> Received: Monday, November 1, 2010, 11:38 PM
> Been poking at this for a couple days
> and figured I'd post it to the ML
> before I spent too much time on it.
> Registration (non-automagic) works like operators, menus
> and KeyingSetInfo
> (which I didn't even know existed). There's some simple
> logic and an
> optional poll function to determine if execute() should be
> called
> in response to an event.
> The WIP patch -- http://www.pasteall.org/16578/diff

If you want it to work like operators, add something like this to bpy_types.py

class Listener(StructRNA, metaclass=RNAMeta):
    __slots__ = ()


More information about the Bf-committers mailing list