From 359ccf845d3a9099e6f2ee4c1949166723b1c1a6 Mon Sep 17 00:00:00 2001 From: Petter <petter.kallstrom@liu.se> Date: Tue, 14 Feb 2023 12:51:17 +0100 Subject: [PATCH] Now with version numer, and some more links --- b_asic/GUI/about_window.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/b_asic/GUI/about_window.py b/b_asic/GUI/about_window.py index 2d15775e..0125715d 100644 --- a/b_asic/GUI/about_window.py +++ b/b_asic/GUI/about_window.py @@ -14,6 +14,8 @@ from qtpy.QtWidgets import ( QVBoxLayout, ) +from b_asic._version import __version__ + QUESTIONS = { "Adding operations": ( "Select an operation under 'Special operations' or 'Core operations' " @@ -139,8 +141,6 @@ class AboutWindow(QDialog): # ---------------------- # |3 links |4 OK | <- layout34 - version_str = "Magic" - label1 = QLabel( "# B-ASIC / Better ASIC Toolbox\n*Construct, simulate and analyze" " components of an ASIC.*\n\nB-ASIC is an open source tool using" @@ -148,7 +148,7 @@ class AboutWindow(QDialog): " ASICs.\n\nB-ASIC is developed under the MIT-license and any" " extension to the program should follow that same license.\n\nTo" " read more about how the GUI works please refer to the FAQ under" - f" 'Help'.\n\n*Version: {version_str}*" + f" 'Help'.\n\n*Version: {__version__}*" ) label1.setTextFormat(Qt.MarkdownText) label1.setWordWrap(True) @@ -160,8 +160,10 @@ class AboutWindow(QDialog): self.logo2.setFixedWidth(100) label3 = QLabel( - """See the <a href="https://da.gitlab-pages.liu.se/B-ASIC/">documentation page</a>""" - """ and the <a href="https://gitlab.liu.se/da/B-ASIC/">git page</a>""" + """See: <a href="https://da.gitlab-pages.liu.se/B-ASIC/">documentation</a>,""" + """ <a href="https://gitlab.liu.se/da/B-ASIC/">git</a>,""" + """ <a href="https://www.liu.se/?l=en">liu.se</a>,""" + """ <a href="https://liu.se/organisation/liu/isy/da">Computer Engineering</a>.""" ) label3.setOpenExternalLinks(True) label3.linkHovered.connect(self.hoverText) -- GitLab