Trees | Indices | Help |
|
---|
|
object --+ | basestring --+ | unicode --+ | object --+ | | | BaseUI --+ | object --+ | | | interface.Interface --+ | | | interface.iDagItem --+ | object --+ | | | util.EventSender --+ | | | util.EventSenderUI --+ | NamedUI
Implements a simple UI element having a name and most common methods one can apply to it. Derived classes should override these if they can deliver a faster implementation. If the 'name' keyword is supplied, an existing UI element will be wrapped
Events
As subclass of EventSenderUI, it can provide events that are automatically added by the metaclass as described by the _events_ attribute list. This allows any number of clients to register for one maya event. Derived classes may also use their own events which is useful if you create components
Register for an event like:
>>> uiinstance.e_eventlongname = yourFunction( sender, *args, **kwargs ) >>> *args and **kwargs are determined by maya
Note: although many access methods look quite 'repeated' as they are quite similar except for a changing flag, they are hand-written to provide proper docs for them
|
|||
__metaclass__ Builds the base hierarchy for the given classname based on our typetree. |
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
Overridden Methods | |||
---|---|---|---|
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
Properties | |||
|
|||
|
|||
Query Methods | |||
|
|||
|
|||
|
|||
Inherited from |
|||
Iterators | |||
Inherited from |
|||
Name Generation | |||
Inherited from |
|
|||
Inherited from |
|||
Overridden Methods | |||
---|---|---|---|
|
|||
Hierachy Handling | |||
|
|||
Name Generation | |||
Inherited from |
|
|||
_is_menu = False hash(x) |
|||
Inherited from Inherited from Inherited from |
|||
Configuration | |||
---|---|---|---|
_sep = "|" hash(x) |
|
|||
Inherited from |
|
|
Notes:
|
repr(x)
|
|
|
Notes:
|
Notes:
|
Note: this helps mainly as a workaround for a maya 2011 issues, causing objectTypeUI not to work on many items |
|
|
If overridden in subclass, it will be called once the UI gets deleted within maya ( i.e. the user closed the window )eee The base implementation assures that all event-receivers that are bound to your events will be freed, allowing them to possibly be destroyed as well. Use this callback to register yourself from all your event senders, then call the base class method. Note: This is not related to the __del__ method of your object. Its worth noting that your instance will be strongly bound to a maya event, hence your instance will exist as long as your user interface element exists within maya. |
Note: The return value is NOT the type string, but a class |
|
|
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 19 18:00:15 2011 | http://epydoc.sourceforge.net |