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

Class _UIEvent

source code

object --+    
         |    
util.Event --+
             |
            EventSenderUI._UIEvent

Event suitable to deal with user interface callback
Instance Methods [hide private]
 
__init__(self, eventname, **kwargs)
Allows to set additional arguments to be given when a callback is actually set
source code
 
send(self, inst, *args, **kwargs)
Sets our instance prior to calling the super class
source code
 
__set__(self, inst, eventfunc)
Set the given event to be called when this event is being triggered
source code

Inherited from util.Event: __call__, __get__, duplicate, remove

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

Class Variables [hide private]
  use_weakref = False
hash(x)
  remove_on_error = True

Inherited from util.Event: sender_as_argument

Inherited from util.Event (private): _curSender, _inst_event_attr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, eventname, **kwargs)
(Constructor)

source code 
Allows to set additional arguments to be given when a callback is actually set
Parameters:
  • kwargs -
    • weak: if True, default class configuration use_weakref, weak

      references will be created for event handlers, if False it will be strong references

    • remove_failed: if True, defailt False, failed callback handlers

      will be removed silently

    • sender_as_argument - see class member

Overrides: object.__init__

send(self, inst, *args, **kwargs)

source code 
Sets our instance prior to calling the super class
Returns:
False if at least one event call threw an exception, true otherwise
Overrides: util.Event.send

__set__(self, inst, eventfunc)

source code 
Set the given event to be called when this event is being triggered
Overrides: util.Event.__set__