File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
22import sys
3+ import ctypes
34import traceback
45import logging
56
1415from gui .run_experiment_tab import Run_experiment_tab
1516from gui .setups_tab import Setups_tab
1617
18+ if os .name == 'nt' : # Needed on windows to get taskbar icon to display correctly.
19+ ctypes .windll .shell32 .SetCurrentProcessExplicitAppUserModelID (u'pyControl' )
20+
1721# --------------------------------------------------------------------------------
1822# GUI_main
1923# --------------------------------------------------------------------------------
@@ -191,6 +195,7 @@ def launch_GUI():
191195 '''Launch the pyControl GUI.'''
192196 app = QtGui .QApplication (sys .argv )
193197 app .setStyle ('Fusion' )
198+ app .setWindowIcon (QtGui .QIcon ("gui/icons/main.svg" ))
194199 font = QtGui .QFont ()
195200 font .setPixelSize (ui_font_size )
196201 app .setFont (font )
You can’t perform that action at this time.
0 commit comments