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
!129
Add testing with pyqt5
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add testing with pyqt5
testpyqt5
into
master
Overview
0
Commits
1
Pipelines
15
Changes
7
Merged
Oscar Gustafsson
requested to merge
testpyqt5
into
master
2 years ago
Overview
0
Commits
1
Pipelines
15
Changes
7
Expand
Closes
#146 (closed)
Edited
2 years ago
by
Oscar Gustafsson
0
0
Merge request reports
Viewing commit
ac18569b
Show latest version
7 files
+
60
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
ac18569b
Add testing with pyqt5
· ac18569b
Oscar Gustafsson
authored
2 years ago
b_asic/GUI/main_window.py
+
2
−
1
Options
@@ -16,6 +16,7 @@ from qtpy.QtWidgets import (
QAction
,
QApplication
,
QFileDialog
,
QGraphicsItem
,
QGraphicsScene
,
QGraphicsTextItem
,
QGraphicsView
,
@@ -527,7 +528,7 @@ class MainWindow(QMainWindow):
attr_button_scene
.
moveBy
(
int
(
self
.
scene
.
width
()
/
4
),
int
(
self
.
scene
.
height
()
/
4
)
)
attr_button_scene
.
setFlag
(
attr_button_scene
.
ItemIsSelectable
,
True
)
attr_button_scene
.
setFlag
(
QGraphicsItem
.
ItemIsSelectable
,
True
)
operation_label
=
QGraphicsTextItem
(
op
.
name
,
attr_button_scene
)
if
not
self
.
is_show_names
:
operation_label
.
setOpacity
(
0
)
Loading