Skip to content

Commit

Permalink
Update GUI with new banner
Browse files Browse the repository at this point in the history
  • Loading branch information
nl78 committed Dec 8, 2024
1 parent 3224545 commit 31cc9cb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Binary file modified doc/fmutool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 8 additions & 6 deletions fmu_manipulation_toolbox/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __init__(self):
self.setMinimumWidth(800)
self.setMinimumHeight(480)

self.insertHtml(f'<img src="fmutool.png"/>')
self.insertHtml('<center><img src="fmu_manipulation_toolbox.png"/></center><br>')
LogWidget.XStream.stdout().messageWritten.connect(self.insertPlainText)
LogWidget.XStream.stderr().messageWritten.connect(self.insertPlainText)

Expand Down Expand Up @@ -435,11 +435,13 @@ def apply_operation(self, operation):


class Application:
r""" ____ __ ___ __ __ ______ __
\-^-/ / __/ / |/ / / / / //_ __/ ___ ___ / /
(o o) / _/ / /|_/ / / /_/ / / / / _ \/ _ \ / /
ooO--(_)--Ooo- /_/ /_/ /_/ \____/ /_/ \___/\___//_/"""
"""
Analyse and modify your FMUs.
Note: modifying the modelDescription.xml can damage your FMU ! Communicating with the FMU-developer and adapting the
way the FMU is generated, is preferable when possible.
"""
def __init__(self):
QDir.addSearchPath('images', os.path.join(os.path.dirname(__file__), "resources"))
self.app = QApplication(sys.argv)
Expand Down Expand Up @@ -479,8 +481,8 @@ def __init__(self):

self.app.setStyleSheet(css_dark)
self.window = FMUManipulationToolboxlMainWindow(self.app)
print(" "*80, f"Version {version}")
print(self.__doc__)
print(f" Version {version}")
sys.exit(self.app.exec())

def exit(self):
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed fmu_manipulation_toolbox/resources/fmutool.png
Binary file not shown.

0 comments on commit 31cc9cb

Please sign in to comment.