src/jmLightToolkit.py
def createUnusedFiltersWindow(filters, deleteFiltersFunc):
    """ Show unused light filters Window. """
    global _lightFiltersWindow

    if _lightToolkitWindow is None:
        return None

    control = FILTERS_NAME + "WorkspaceControl"
    if pm.workspaceControl(control, q=True, exists=True) and _lightFiltersWindow is None:
        pm.workspaceControl(control, e=True, close=True)
        pm.deleteUI(control)

    if _lightFiltersWindow is None:
        _lightFiltersWindow = JMUnusedLightFiltersWindow(filters, deleteFiltersFunc)
        _lightFiltersWindow.windowStateChanged.connect(unusedFiltersWindowChanged)

    required_control = _lightToolkitWindow.objectName() + 'WorkspaceControl'
    _lightFiltersWindow.show(dockable=True, controls=required_control,
        closeCallback='import jmLightToolkit\njmLightToolkit.unusedFiltersWindowClosed()')

    return _lightFiltersWindow
 Show unused light filters Window. 
Show unused light filters Window.
Show unused light filters Window .
def createUnusedFiltersWindow(filters, deleteFiltersFunc):
    global _lightFiltersWindow
    if _lightToolkitWindow is None:
        return None
    control = FILTERS_NAME + "WorkspaceControl"
    if pm.workspaceControl(control, q=True, exists=True) and _lightFiltersWindow is None:
        pm.workspaceControl(control, e=True, close=True)
        pm.deleteUI(control)
    if _lightFiltersWindow is None:
        _lightFiltersWindow = JMUnusedLightFiltersWindow(filters, deleteFiltersFunc)
        _lightFiltersWindow.windowStateChanged.connect(unusedFiltersWindowChanged)
    required_control = _lightToolkitWindow.objectName() + 'WorkspaceControl'
    _lightFiltersWindow.show(dockable=True, controls=required_control,
        closeCallback='import jmLightToolkit\njmLightToolkit.unusedFiltersWindowClosed()')
    return _lightFiltersWindow
def createUnusedFiltersWindow ( filters , deleteFiltersFunc ) : global _lightFiltersWindow if _lightToolkitWindow is None : return None control = FILTERS_NAME + "WorkspaceControl" if pm . workspaceControl ( control , q = True , exists = True ) and _lightFiltersWindow is None : pm . workspaceControl ( control , e = True , close = True ) pm . deleteUI ( control ) if _lightFiltersWindow is None : _lightFiltersWindow = JMUnusedLightFiltersWindow ( filters , deleteFiltersFunc ) _lightFiltersWindow . windowStateChanged . connect ( unusedFiltersWindowChanged ) required_control = _lightToolkitWindow . objectName ( ) + 'WorkspaceControl' _lightFiltersWindow . show ( dockable = True , controls = required_control , closeCallback = 'import jmLightToolkit\njmLightToolkit.unusedFiltersWindowClosed()' ) return _lightFiltersWindow
Show unused light filters Window.
Show unused light filters Window .
""" Show unused light filters Window. """
filters
deleteFiltersFunc