Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Merge requests
!182
About window
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
About window
about_window
into
master
Overview
0
Commits
4
Pipelines
2
Changes
1
Merged
Petter Källström
requested to merge
about_window
into
master
2 years ago
Overview
0
Commits
4
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Viewing commit
92078a15
Prev
Next
Show latest version
1 file
+
12
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
92078a15
Updated some links, also added a mouse-over text for links.
· 92078a15
Petter Källström
authored
2 years ago
b_asic/GUI/about_window.py
+
12
−
2
Options
import
sys
# ONLY FOR DEBUG
from
qtpy.QtCore
import
Qt
from
qtpy.QtGui
import
QPixmap
from
qtpy.QtGui
import
QCursor
,
QPixmap
from
qtpy.QtWidgets
import
QApplication
# ONLY FOR DEBUG
from
qtpy.QtWidgets
import
(
QDialog
,
@@ -10,6 +10,7 @@ from qtpy.QtWidgets import (
QLabel
,
QPushButton
,
QScrollArea
,
QToolTip
,
QVBoxLayout
,
)
@@ -124,6 +125,13 @@ class AboutWindow(QDialog):
self
.
add_information_to_layout
()
def
hoverText
(
self
,
url
):
# self.setWindowTitle(url) # When removing mouse, the title gets "B-ASIC Scheduler". Where does THAT come from?
if
url
:
QToolTip
.
showText
(
QCursor
.
pos
(),
url
)
else
:
QToolTip
.
hideText
()
def
add_information_to_layout
(
self
):
# |1 Title |2 |
# | License | Logo | <- layout12
@@ -152,9 +160,11 @@ class AboutWindow(QDialog):
self
.
logo2
.
setFixedWidth
(
100
)
label3
=
QLabel
(
"""
See our <a href=
"
https://gitlab.liu.se/da/B-ASIC/
"
>git page</a>
"""
"""
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>
"""
)
label3
.
setOpenExternalLinks
(
True
)
label3
.
linkHovered
.
connect
(
self
.
hoverText
)
button4
=
QPushButton
()
button4
.
setText
(
"
OK
"
)
Loading