Commit 661cea5f authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add opengeode logo

parent 41eb497f
......@@ -33,6 +33,7 @@ Author: Maxime Perrotin
LICENSE: LGPL - see LICENSE file
CHANGELOG:,
1.1.3 - Use Opengeode logo when simulating SDL systems
1.1.2 - Call manually the startup function of the SDL model
1.1.0 - Add support for custom user widgets
1.0.8 - various updates in SDL handler
......
......@@ -7,6 +7,7 @@
<file>internalState.ui</file>
<file>singleEditor.ui</file>
<file>tasteLogo_white.png</file>
<file>opengeode.png</file>
<file>InterfaceEnum.i</file>
</qresource>
</RCC>
......@@ -16,7 +16,7 @@
__author__ = "Maxime Perrotin"
__license__ = "LGPLv3"
__version__ = "1.1.2"
__version__ = "1.1.3"
__url__ = "http://taste.tuxfamily.org"
import sys
......
......@@ -140,7 +140,10 @@ def gui():
# Exit app on Ctrl-C
signal.signal(signal.SIGINT, signal.SIG_DFL)
if 'opengeode-simulator' in sys.argv[0]:
logo = ':/opengeode.png'
sys.argv.append('-l')
else:
logo = ':/tasteLogo_white.png'
#usage = 'usage: gui.py [--udp=IP_Address:in_Port:out_Port]'
version = 'taste auto-gui %s' % (__version__)
......@@ -255,7 +258,7 @@ def gui():
# find TASTE logo and get width of the picture
tasteLogo = myWidget.findChild(QLabel, 'tasteLogo')
tasteLogo.setPixmap(':/tasteLogo_white.png')
tasteLogo.setPixmap(logo)
logoWidth = tasteLogo.pixmap().width()
# find Central widget and set maximum size to width of the logo
......
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