mrv :: maya :: ui :: util :: EventSenderUI :: Class EventSenderUI
[hide private]
[frames] | no frames]

Class EventSenderUI

source code

      object --+    
               |    
util.EventSender --+
                   |
                  EventSenderUI

Allows registration of a typical UI callback It basically streamlines the registration for a callback such that any number of listeners can be called when an event occours - this works by keeping an own list of callbacks registered for a specific event, and calling them whenever the maya ui callback has been triggered

To use this class , see the documentation of EventSender, but use the Event instead. If you want to add your own events, use your own Signal s.

The class does NOT use weakreferences for the main callbacks to make it easier to use. Use the WeakFunction to properly and weakly bind an instance function

When registered for an event, the sender will be provided to each callback as first argument.

Nested Classes [hide private]
  _UIEvent
Event suitable to deal with user interface callback
Instance Methods [hide private]

Inherited from util.EventSender: clearAllEvents, sender

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from util.EventSender: listEventNames

Class Variables [hide private]
  sender_as_argument = True
  reraise_on_error = True
Properties [hide private]

Inherited from object: __class__