Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SGS18-READEX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ondrej Vysocky
SGS18-READEX
Commits
ecb6b504
Commit
ecb6b504
authored
6 years ago
by
Ivo Peterek
Browse files
Options
Downloads
Patches
Plain Diff
ENH: GUI layout - added csv init checkbox
#2
parent
d0dc0684
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
radarGUI.py
+16
-7
16 additions, 7 deletions
radarGUI.py
with
16 additions
and
7 deletions
radarGUI.py
+
16
−
7
View file @
ecb6b504
...
...
@@ -344,9 +344,6 @@ class Ui_TabWidget(object):
font
.
setWeight
(
75
)
self
.
label_Baseline
.
setFont
(
font
)
self
.
label_Baseline
.
setObjectName
(
"
label_Baseline
"
)
self
.
textEdit_Baseline
=
QtWidgets
.
QTextEdit
(
self
.
tab_AddOptions
)
self
.
textEdit_Baseline
.
setGeometry
(
QtCore
.
QRect
(
160
,
20
,
111
,
27
))
self
.
textEdit_Baseline
.
setObjectName
(
"
textEdit_Baseline
"
)
self
.
label_W
=
QtWidgets
.
QLabel
(
self
.
tab_AddOptions
)
self
.
label_W
.
setGeometry
(
QtCore
.
QRect
(
280
,
20
,
50
,
27
))
self
.
label_W
.
setObjectName
(
"
label_W
"
)
...
...
@@ -365,7 +362,7 @@ class Ui_TabWidget(object):
self
.
checkBox_SmoothRunsAverage
.
setFont
(
font
)
self
.
checkBox_SmoothRunsAverage
.
setObjectName
(
"
checkBox_SmoothRunsAverage
"
)
self
.
checkBox_GenerateOptSettingFile
=
QtWidgets
.
QCheckBox
(
self
.
tab_AddOptions
)
self
.
checkBox_GenerateOptSettingFile
.
setGeometry
(
QtCore
.
QRect
(
50
,
1
5
0
,
241
,
27
))
self
.
checkBox_GenerateOptSettingFile
.
setGeometry
(
QtCore
.
QRect
(
50
,
1
8
0
,
241
,
27
))
font
=
QtGui
.
QFont
()
font
.
setBold
(
True
)
font
.
setWeight
(
75
)
...
...
@@ -376,7 +373,7 @@ class Ui_TabWidget(object):
self
.
pushButton_Generate
.
setGeometry
(
QtCore
.
QRect
(
680
,
520
,
99
,
27
))
self
.
pushButton_Generate
.
setObjectName
(
"
pushButton_Generate
"
)
self
.
frame_opt_settings
=
QtWidgets
.
QFrame
(
self
.
tab_AddOptions
)
self
.
frame_opt_settings
.
setGeometry
(
QtCore
.
QRect
(
50
,
19
0
,
451
,
271
))
self
.
frame_opt_settings
.
setGeometry
(
QtCore
.
QRect
(
50
,
22
0
,
451
,
271
))
self
.
frame_opt_settings
.
setFrameShape
(
QtWidgets
.
QFrame
.
StyledPanel
)
self
.
frame_opt_settings
.
setFrameShadow
(
QtWidgets
.
QFrame
.
Raised
)
self
.
frame_opt_settings
.
setObjectName
(
"
frame_opt_settings
"
)
...
...
@@ -450,6 +447,16 @@ class Ui_TabWidget(object):
font
.
setWeight
(
75
)
self
.
label
.
setFont
(
font
)
self
.
label
.
setObjectName
(
"
label
"
)
self
.
lineEdit_baseline
=
QtWidgets
.
QLineEdit
(
self
.
tab_AddOptions
)
self
.
lineEdit_baseline
.
setGeometry
(
QtCore
.
QRect
(
160
,
20
,
113
,
25
))
self
.
lineEdit_baseline
.
setObjectName
(
"
lineEdit_baseline
"
)
self
.
checkBox_test_csv_init
=
QtWidgets
.
QCheckBox
(
self
.
tab_AddOptions
)
self
.
checkBox_test_csv_init
.
setGeometry
(
QtCore
.
QRect
(
50
,
150
,
181
,
22
))
font
=
QtGui
.
QFont
()
font
.
setBold
(
True
)
font
.
setWeight
(
75
)
self
.
checkBox_test_csv_init
.
setFont
(
font
)
self
.
checkBox_test_csv_init
.
setObjectName
(
"
checkBox_test_csv_init
"
)
TabWidget_p
.
addTab
(
self
.
tab_AddOptions
,
""
)
self
.
retranslateUi
(
TabWidget_p
)
...
...
@@ -485,7 +492,6 @@ class Ui_TabWidget(object):
func_list
.
append
((
lambda
tmp
:
lambda
:
self
.
__combo_opt_settings
(
self
.
comboBox_opt_settings_list
[
tmp
]))(
i
))
self
.
comboBox_opt_settings_list
[
i
].
activated
.
connect
(
func_list
[
-
1
])
self
.
tab_widget
.
currentChanged
.
connect
(
self
.
__tab_index_changed
)
def
retranslateUi
(
self
,
TabWidget_p
):
...
...
@@ -518,6 +524,7 @@ class Ui_TabWidget(object):
self
.
label_UncoreFreq
.
setText
(
_translate
(
"
TabWidget
"
,
"
Uncore frequency
"
))
self
.
label_PathToOptSetting
.
setText
(
_translate
(
"
TabWidget
"
,
"
Path to optimal settings file
"
))
self
.
label
.
setText
(
_translate
(
"
TabWidget
"
,
"
Optimal settings file options
"
))
self
.
checkBox_test_csv_init
.
setText
(
_translate
(
"
TabWidget
"
,
"
CSV init test
"
))
TabWidget_p
.
setTabText
(
TabWidget_p
.
indexOf
(
self
.
tab_AddOptions
),
_translate
(
"
TabWidget
"
,
"
Additional options
"
))
def
__next
(
self
):
...
...
@@ -802,10 +809,11 @@ class Ui_TabWidget(object):
config_file
.
write
(
"
detailed_info = False
\n\n
"
)
#TODO: dodelat
config_file
.
write
(
"
optim_settings_file_path = None
\n\n
"
)
config_file
.
write
(
"
generate_optim_settings_file = None
\n\n
"
)
config_file
.
write
(
"
baseline =
"
+
self
.
text
Edit_Baseline
.
t
oPlainT
ext
()
+
"
\n\n
"
)
config_file
.
write
(
"
baseline =
"
+
self
.
line
Edit_Baseline
.
text
()
+
"
\n\n
"
)
#TODO: pridat test cv option do GUI
config_file
.
write
(
"
test_csv_init = False
"
)
...
...
@@ -825,3 +833,4 @@ if __name__ == "__main__":
TabWidget
.
show
()
sys
.
exit
(
app
.
exec_
())
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment