Skip to content

Commit

Permalink
Use qt
Browse files Browse the repository at this point in the history
Suggestion from code review

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
  • Loading branch information
BenoitConnan and iLLiCiTiT authored Feb 8, 2022
1 parent 509792e commit 4f8ab6d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions openpype/tools/studio_tools/app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import sys
import os
import PySide2.QtCore as QtCore
import PySide2.QtWidgets as QtWidgets
from pyblish_pype import util
from Qt import QtCore
from Qt import QtWidgets
from openpype import style
from openpype.settings import get_project_settings
from openpype.tools.utils import lib as tools_lib

Expand All @@ -19,14 +19,7 @@ def __init__(self, parent=None):
super(StudioToolsDialog, self).__init__(parent)

self.resize(400, 300)
with open(util.get_asset("app.css")) as f:
css = f.read()

# Make relative paths absolute
root = util.get_asset("").replace("\\", "/")
css = css.replace("url(\"", "url(\"%s" % root)

self.setStyleSheet(css)
self.setStyleSheet(style.load_stylesheet())

project_settings = get_project_settings(os.getenv("AVALON_PROJECT"))
host = os.getenv("AVALON_APP")
Expand Down

0 comments on commit 4f8ab6d

Please sign in to comment.