示例#1
0
 def wrapped(*args, **kwargs):
     cursor = QtGui.QCursor(QtCore.Qt.ArrowCursor)
     QtWidgets.QApplication.setOverrideCursor(cursor)
     try:
         return fn(*args, **kwargs)
     finally:
         QtWidgets.QApplication.restoreOverrideCursor()
示例#2
0
 def showSelectionSetsMenu(self, **kwargs):
     """
     :rtype: QtWidgets.QAction
     """
     menu = self.selectionSetsMenu(**kwargs)
     position = QtGui.QCursor().pos()
     action = menu.exec_(position)
     return action
示例#3
0
def show(path, **kwargs):
    """
    :type path: str
    :rtype: QtWidgets.QAction
    """
    menu = SelectionSetMenu.fromPath(path, **kwargs)
    position = QtGui.QCursor().pos()
    action = menu.exec_(position)
    return action
def showFrameRangeMenu():
    """
    Show the frame range menu at the current cursor position.

    :rtype: QtWidgets.QAction
    """
    menu = FrameRangeMenu()
    position = QtGui.QCursor().pos()
    action = menu.exec_(position)
    return action
示例#5
0
    def showSelectionSetsMenu(self, **kwargs):
        """
        Show the selection sets menu for this item at the cursor position.

        :rtype: QtWidgets.QAction
        """
        menu = self.createSelectionSetsMenu(**kwargs)
        position = QtGui.QCursor().pos()
        action = menu.exec_(position)
        return action
示例#6
0
def showSetsMenu(path, **kwargs):
    """
    Show the frame range menu at the current cursor position.

    :type path: str
    :rtype: QtWidgets.QAction
    """
    menu = SelectionSetMenu.fromPath(path, **kwargs)
    position = QtGui.QCursor().pos()
    action = menu.exec_(position)
    return action
示例#7
0
    def showSelectionSetsMenu(self):
        """
        :rtype: None
        """
        import selectionsetmenu

        dirname = self.dirname()
        menu = selectionsetmenu.SelectionSetMenu.fromPath(dirname, parent=self)
        position = QtGui.QCursor().pos()

        menu.exec_(position)
示例#8
0
    def showSelectionSetsMenu(self):
        """
        Show the selection sets menu for the current folder path.

        :rtype: None
        """
        import setsmenu

        path = self.folderPath()
        menu = setsmenu.SetsMenu.fromPath(path, parent=self)
        position = QtGui.QCursor().pos()

        menu.exec_(position)
    def showSelectionSetsMenu(self):
        """
        Show the selection sets menu for the current folder path.

        :rtype: None
        """
        import setsmenu

        path = self.folderPath()
        position = QtGui.QCursor().pos()
        libraryWindow = self.libraryWindow()
        namespaces = self.item().namespaces()

        menu = setsmenu.SetsMenu.fromPath(path,
                                          libraryWindow=libraryWindow,
                                          namespaces=namespaces)
        menu.exec_(position)