How to subscribe to a Revit API event in Iron Python

Good afternoon,

I’m trying to subscribe to the Idling Event after using the Post Command method.

I’m having trouble finding resources explaining this topic. There are many C# examples but since I am new to Python and coding in general I cannot follow the examples.

So far I have the beginning of constructing an Event Handler, but that’s it. I’m not sure what to put for the value of this definition or how to use it to subscribe to the Idling Event,

image

Any help is greatly appreciated. Thank you in advance!