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

Commit

Permalink
Merge pull request #606 from pypeclub/feature/standalonepublisher_wit…
Browse files Browse the repository at this point in the history
…h_icon

Standalone publisher now has icon
  • Loading branch information
mkolar authored Oct 6, 2020
2 parents 8c31927 + 6a6071e commit d3209da
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 d3209da

Please sign in to comment.