Package mrv :: Package maya :: Package ui :: Module util
[hide private]
[frames] | no frames]

Module util

source code

Utilities and classes useful for user interfaces
Classes [hide private]
  Signal
User interface signal which keeps assigned functions as strong reference to assure we can always call it.
  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
  UIContainerBase
A ui container is a base for all classes that can have child controls or other containers.
  iItemSet
Interface allowing to dynamically add, update and remove items to a layout to match a given input set of item ids.
Functions [hide private]
    MEL Function Wrappers
 
makeEditOrQueryMethod(flag, isEdit=False, methodName=None)
Create a function calling inFunc with an edit or query flag set.
source code
 
queryMethod(flag, methodName=None)
Shorthand query version of makeEditOrQueryMethod
source code
 
editMethod(flag, methodName=None)
Shorthand edit version of makeEditOrQueryMethod
source code
 
propertyQE(flag, methodName=None)
Shorthand for simple query and edit properties
source code
Function Details [hide private]

makeEditOrQueryMethod(flag, isEdit=False, methodName=None)

source code 
Create a function calling inFunc with an edit or query flag set.
Parameters:
  • flag - name of the query or edit flag
  • isEdit - If not False, the method returned will be an edit function
  • methodName - the name of the method returned, defaults to inCmd name
Notes:
  • only works on mrv wrapped ui elements
  • THIS IS MOSTLY A DUPLICATION OF PROVEN CODE FROM mrv.maya.util !