def wrapped(*args, **kwargs): cursor = QtGui.QCursor(QtCore.Qt.ArrowCursor) QtWidgets.QApplication.setOverrideCursor(cursor) try: return fn(*args, **kwargs) finally: QtWidgets.QApplication.restoreOverrideCursor()
def showSelectionSetsMenu(self, **kwargs): """ :rtype: QtWidgets.QAction """ menu = self.selectionSetsMenu(**kwargs) position = QtGui.QCursor().pos() action = menu.exec_(position) return action
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
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
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
def showSelectionSetsMenu(self): """ :rtype: None """ import selectionsetmenu dirname = self.dirname() menu = selectionsetmenu.SelectionSetMenu.fromPath(dirname, 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() 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)