Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
added application icon to standalone publisher tool
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Oct 5, 2020
1 parent 0486cb7 commit 6a6071e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pype/tools/standalonepublish/__main__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
import os
import sys
import app
import ctypes
import signal
from Qt import QtWidgets
from Qt import QtWidgets, QtGui
from avalon import style
from pype.api import resources


if __name__ == "__main__":

# Allow to change icon of running process in windows taskbar
if os.name == "nt":
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
u"standalonepublish"
)

qt_app = QtWidgets.QApplication([])
# app.setQuitOnLastWindowClosed(False)
qt_app.setStyleSheet(style.load_stylesheet())
icon = QtGui.QIcon(resources.pype_icon_filepath())
qt_app.setWindowIcon(icon)

def signal_handler(sig, frame):
print("You pressed Ctrl+C. Process ended.")
Expand Down

0 comments on commit 6a6071e

Please sign in to comment.