Merge branch 'release/3.15.x' into feature/OP-4634_Use-qtpy-in-tools

This commit is contained in:
Jakub Trllo 2022-12-21 13:45:07 +01:00
commit 4775becc30
12 changed files with 13 additions and 13 deletions

View file

@ -3,7 +3,7 @@
import contextlib import contextlib
import logging import logging
from Qt import QtWidgets, QtCore, QtGui from qtpy import QtWidgets, QtCore, QtGui
from openpype import style from openpype import style
from openpype.client import get_asset_by_name from openpype.client import get_asset_by_name

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
"""3dsmax menu definition of OpenPype.""" """3dsmax menu definition of OpenPype."""
from Qt import QtWidgets, QtCore from qtpy import QtWidgets, QtCore
from pymxs import runtime as rt from pymxs import runtime as rt
from openpype.tools.utils import host_tools from openpype.tools.utils import host_tools

View file

@ -39,7 +39,7 @@ class ToolWindows:
def edit_shader_definitions(): def edit_shader_definitions():
from Qt import QtWidgets from qtpy import QtWidgets
from openpype.hosts.maya.api.shader_definition_editor import ( from openpype.hosts.maya.api.shader_definition_editor import (
ShaderDefinitionsEditor ShaderDefinitionsEditor
) )

View file

@ -116,7 +116,7 @@ RENDERLIKE_INSTANCE_FAMILIES = ["rendering", "vrayscene"]
def get_main_window(): def get_main_window():
"""Acquire Maya's main window""" """Acquire Maya's main window"""
from Qt import QtWidgets from qtpy import QtWidgets
if self._parent is None: if self._parent is None:
self._parent = { self._parent = {
@ -3018,7 +3018,7 @@ def update_content_on_context_change():
def show_message(title, msg): def show_message(title, msg):
from Qt import QtWidgets from qtpy import QtWidgets
from openpype.widgets import message_window from openpype.widgets import message_window
# Find maya main window # Find maya main window

View file

@ -1,7 +1,7 @@
import os import os
import logging import logging
from Qt import QtWidgets, QtGui from qtpy import QtWidgets, QtGui
import maya.utils import maya.utils
import maya.cmds as cmds import maya.cmds as cmds

View file

@ -563,7 +563,7 @@ def on_save():
def on_open(): def on_open():
"""On scene open let's assume the containers have changed.""" """On scene open let's assume the containers have changed."""
from Qt import QtWidgets from qtpy import QtWidgets
from openpype.widgets import popup from openpype.widgets import popup
cmds.evalDeferred( cmds.evalDeferred(

View file

@ -5,7 +5,7 @@ Shader names are stored as simple text file over GridFS in mongodb.
""" """
import os import os
from Qt import QtWidgets, QtCore, QtGui from qtpy import QtWidgets, QtCore, QtGui
from openpype.client.mongo import OpenPypeMongoConnection from openpype.client.mongo import OpenPypeMongoConnection
from openpype import resources from openpype import resources
import gridfs import gridfs

View file

@ -153,7 +153,7 @@ class ImportMayaLoader(load.LoaderPlugin):
""" """
from Qt import QtWidgets from qtpy import QtWidgets
accept = QtWidgets.QMessageBox.Ok accept = QtWidgets.QMessageBox.Ok
buttons = accept | QtWidgets.QMessageBox.Cancel buttons = accept | QtWidgets.QMessageBox.Cancel

View file

@ -1,4 +1,4 @@
from Qt import QtWidgets, QtCore from qtpy import QtWidgets, QtCore
from openpype.client import ( from openpype.client import (
get_asset_by_id, get_asset_by_id,

View file

@ -3,7 +3,7 @@
import json import json
from collections import defaultdict from collections import defaultdict
from Qt import QtWidgets from qtpy import QtWidgets
from openpype.client import get_representation_by_name from openpype.client import get_representation_by_name
from openpype.pipeline import ( from openpype.pipeline import (

View file

@ -89,7 +89,7 @@ class ValidateAssemblyModelTransforms(pyblish.api.InstancePlugin):
""" """
from Qt import QtWidgets from qtpy import QtWidgets
from openpype.hosts.maya.api import lib from openpype.hosts.maya.api import lib
# Store namespace in variable, cosmetics thingy # Store namespace in variable, cosmetics thingy

View file

@ -1,3 +1,3 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
"""Package declaring Pype version.""" """Package declaring Pype version."""
__version__ = "3.14.10-nightly.1" __version__ = "3.14.10-nightly.2"