mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
moved compat.py directly to app.py
This commit is contained in:
parent
b32ef567f0
commit
d82b95e59b
2 changed files with 9 additions and 17 deletions
|
|
@ -1,10 +1,12 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import contextlib
|
||||
import os
|
||||
import sys
|
||||
import ctypes
|
||||
import platform
|
||||
import contextlib
|
||||
|
||||
from . import compat, control, settings, util, window
|
||||
from . import control, settings, util, window
|
||||
from Qt import QtCore, QtGui, QtWidgets
|
||||
|
||||
self = sys.modules[__name__]
|
||||
|
|
@ -79,7 +81,11 @@ def show(parent=None):
|
|||
css = css.replace("url(\"", "url(\"%s" % root)
|
||||
|
||||
with application() as app:
|
||||
compat.init()
|
||||
|
||||
if platform.system().lower() == "windows":
|
||||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
|
||||
u"pyblish_pype"
|
||||
)
|
||||
|
||||
install_fonts()
|
||||
install_translator(app)
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
import os
|
||||
|
||||
|
||||
def __windows_taskbar_compat():
|
||||
"""Enable icon and taskbar grouping for Windows 7+"""
|
||||
|
||||
import ctypes
|
||||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
|
||||
u"pyblish_pype")
|
||||
|
||||
|
||||
def init():
|
||||
if os.name == "nt":
|
||||
__windows_taskbar_compat()
|
||||
Loading…
Add table
Add a link
Reference in a new issue