use qtpy in maya implementation instead of Qt

This commit is contained in:
Jakub Trllo 2022-12-20 13:39:27 +01:00
parent 95939fb99e
commit ccc2579697
9 changed files with 10 additions and 10 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -153,7 +153,7 @@ class ImportMayaLoader(load.LoaderPlugin):
"""
from Qt import QtWidgets
from qtpy import QtWidgets
accept = QtWidgets.QMessageBox.Ok
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 (
get_asset_by_id,

View file

@ -3,7 +3,7 @@
import json
from collections import defaultdict
from Qt import QtWidgets
from qtpy import QtWidgets
from openpype.client import get_representation_by_name
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
# Store namespace in variable, cosmetics thingy