コード例 #1
0
def about(menu):

    global __aboutWindow
    if __aboutWindow is None:

        __aboutWindow = GafferUI.AboutWindow(Gaffer.About)

    scriptWindow = menu.ancestor(GafferUI.ScriptWindow)
    scriptWindow.addChildWindow(__aboutWindow)
    __aboutWindow.setVisible(True)
コード例 #2
0
def about(menu):

    global __aboutWindow

    if __aboutWindow is not None and __aboutWindow():
        window = __aboutWindow()
    else:
        window = GafferUI.AboutWindow(Gaffer.About)
        __aboutWindow = weakref.ref(window)

    scriptWindow = menu.ancestor(GafferUI.ScriptWindow)
    scriptWindow.addChildWindow(window)
    window.setVisible(True)