Skip to content

Commit

Permalink
Merge pull request #1 from nhadler/main
Browse files Browse the repository at this point in the history
Checks what OS script is running on before calling windows DLL
  • Loading branch information
liyuanhe211 authored Mar 30, 2022
2 parents 8439f4b + 729d94e commit 962945f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Draw_Energy_Diagram_XML.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
pyqt_ui_compile('Draw_Energy_Diagram_UI_XML.py')
from UI.Draw_Energy_Diagram_UI_XML import Ui_Draw_Energy_Diagram_Form

APPID = 'LYH.DrawEnergyDiagram.3.4'
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(APPID)
if os.name == 'nt':
APPID = 'LYH.DrawEnergyDiagram.3.4'
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(APPID)

Application = Qt.QApplication(sys.argv)
Application.setWindowIcon(Qt.QIcon('UI/Draw_Energy_Diagram_Icon.png'))
Expand Down

0 comments on commit 962945f

Please sign in to comment.