Commit 5c208bc0 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Include opengeode logo in resource file

When calling opengeode-simulator, will display the OG logo in place of
the TASTE logo, and disable the list of MSC scripts
parent 661cea5f
......@@ -141,9 +141,11 @@ def gui():
signal.signal(signal.SIGINT, signal.SIG_DFL)
if 'opengeode-simulator' in sys.argv[0]:
logo = ':/opengeode.png'
msclist_enable = False
sys.argv.append('-l')
else:
logo = ':/tasteLogo_white.png'
msclist_enable = True
#usage = 'usage: gui.py [--udp=IP_Address:in_Port:out_Port]'
version = 'taste auto-gui %s' % (__version__)
......@@ -276,6 +278,11 @@ def gui():
runMSC = myWidget.findChild(QPushButton, 'runMSC')
loadMSC = myWidget.findChild(QPushButton, 'loadMSC')
editMSC = myWidget.findChild(QPushButton, 'editMSC')
# In SDL simulation mode, MSC record/replay is not supported yet
mscList.setEnabled(msclist_enable)
runMSC.setEnabled(msclist_enable)
loadMSC.setEnabled(msclist_enable)
editMSC.setEnabled(msclist_enable)
# Create an instance of the class handling MSC/Python scripts
msgs = []
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment