Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SADAPMAP
Interface
Commits
e1f9c06c
Commit
e1f9c06c
authored
Apr 15, 2019
by
Pedro Henrique Kopper
Browse files
first commit
parents
Changes
4
Hide whitespace changes
Inline
Side-by-side
CalibracaoPressaoW.py
0 → 100644
View file @
e1f9c06c
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Resources/UI/CalibracaoPressaoW.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from
PyQt5
import
QtCore
,
QtGui
,
QtWidgets
class
Ui_CalibracaoPressaoW
(
object
):
def
setupUi
(
self
,
CalibracaoPressaoW
):
CalibracaoPressaoW
.
setObjectName
(
"CalibracaoPressaoW"
)
CalibracaoPressaoW
.
resize
(
1366
,
756
)
CalibracaoPressaoW
.
setMinimumSize
(
QtCore
.
QSize
(
817
,
0
))
CalibracaoPressaoW
.
setStyleSheet
(
"background-color:rgb(53, 53, 53);
\n
"
"color: rgb(255,255,255);
\n
"
"font: normal 11pt
\"
Lato
\"
;
\n
"
"
\n
"
""
)
self
.
centralWidget
=
QtWidgets
.
QWidget
(
CalibracaoPressaoW
)
self
.
centralWidget
.
setAutoFillBackground
(
False
)
self
.
centralWidget
.
setStyleSheet
(
"QGroupBox::title {
\n
"
" top: 4px;
\n
"
" left: 4px;
\n
"
"}
\n
"
"
\n
"
"QGroupBox {
\n
"
" background-color: rgb(65, 65, 65);
\n
"
" border-radius: 4px;
\n
"
"}
\n
"
"QGroupBox QGroupBox, QLabel {
\n
"
" background-color: rgb(70, 70, 70);
\n
"
"}
\n
"
"
\n
"
"QGroupBox QLineEdit {
\n
"
" font: bold 13px
\"
FreeMono
\"
;
\n
"
"}"
)
self
.
centralWidget
.
setObjectName
(
"centralWidget"
)
self
.
CentralGraph
=
QtWidgets
.
QGraphicsView
(
self
.
centralWidget
)
self
.
CentralGraph
.
setGeometry
(
QtCore
.
QRect
(
430
,
10
,
921
,
531
))
sizePolicy
=
QtWidgets
.
QSizePolicy
(
QtWidgets
.
QSizePolicy
.
Fixed
,
QtWidgets
.
QSizePolicy
.
Fixed
)
sizePolicy
.
setHorizontalStretch
(
0
)
sizePolicy
.
setVerticalStretch
(
0
)
sizePolicy
.
setHeightForWidth
(
self
.
CentralGraph
.
sizePolicy
().
hasHeightForWidth
())
self
.
CentralGraph
.
setSizePolicy
(
sizePolicy
)
self
.
CentralGraph
.
setVerticalScrollBarPolicy
(
QtCore
.
Qt
.
ScrollBarAlwaysOff
)
self
.
CentralGraph
.
setHorizontalScrollBarPolicy
(
QtCore
.
Qt
.
ScrollBarAlwaysOff
)
self
.
CentralGraph
.
setAlignment
(
QtCore
.
Qt
.
AlignBottom
|
QtCore
.
Qt
.
AlignJustify
)
self
.
CentralGraph
.
setObjectName
(
"CentralGraph"
)
self
.
scaleBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
scaleBox
.
setGeometry
(
QtCore
.
QRect
(
20
,
10
,
401
,
221
))
self
.
scaleBox
.
setToolTip
(
""
)
self
.
scaleBox
.
setStatusTip
(
""
)
self
.
scaleBox
.
setWhatsThis
(
""
)
self
.
scaleBox
.
setAutoFillBackground
(
False
)
self
.
scaleBox
.
setStyleSheet
(
"border: 2px solid rgb(194, 8, 6);"
)
self
.
scaleBox
.
setFlat
(
False
)
self
.
scaleBox
.
setCheckable
(
False
)
self
.
scaleBox
.
setObjectName
(
"scaleBox"
)
self
.
forceBox
=
QtWidgets
.
QGroupBox
(
self
.
scaleBox
)
self
.
forceBox
.
setGeometry
(
QtCore
.
QRect
(
10
,
30
,
181
,
101
))
self
.
forceBox
.
setStyleSheet
(
""
)
self
.
forceBox
.
setObjectName
(
"forceBox"
)
self
.
f_max
=
QtWidgets
.
QLineEdit
(
self
.
forceBox
)
self
.
f_max
.
setGeometry
(
QtCore
.
QRect
(
80
,
30
,
61
,
21
))
self
.
f_max
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"color:rgb(255,255,255);"
)
self
.
f_max
.
setObjectName
(
"f_max"
)
self
.
f_max_label
=
QtWidgets
.
QLabel
(
self
.
forceBox
)
self
.
f_max_label
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
57
,
21
))
self
.
f_max_label
.
setStyleSheet
(
"border: rgb(255,255,255)"
)
self
.
f_max_label
.
setObjectName
(
"f_max_label"
)
self
.
f_min_label
=
QtWidgets
.
QLabel
(
self
.
forceBox
)
self
.
f_min_label
.
setGeometry
(
QtCore
.
QRect
(
20
,
60
,
57
,
21
))
self
.
f_min_label
.
setStyleSheet
(
"border:rgb(255,255,255)"
)
self
.
f_min_label
.
setObjectName
(
"f_min_label"
)
self
.
f_min
=
QtWidgets
.
QLineEdit
(
self
.
forceBox
)
self
.
f_min
.
setGeometry
(
QtCore
.
QRect
(
80
,
60
,
61
,
21
))
self
.
f_min
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"color:rgb(255,255,255);"
)
self
.
f_min
.
setObjectName
(
"f_min"
)
self
.
pressureBox
=
QtWidgets
.
QGroupBox
(
self
.
scaleBox
)
self
.
pressureBox
.
setGeometry
(
QtCore
.
QRect
(
210
,
30
,
181
,
101
))
self
.
pressureBox
.
setStyleSheet
(
"
\n
"
""
)
self
.
pressureBox
.
setObjectName
(
"pressureBox"
)
self
.
p_max
=
QtWidgets
.
QLineEdit
(
self
.
pressureBox
)
self
.
p_max
.
setGeometry
(
QtCore
.
QRect
(
80
,
30
,
61
,
21
))
self
.
p_max
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"color:rgb(255,255,255);"
)
self
.
p_max
.
setObjectName
(
"p_max"
)
self
.
p_max_label
=
QtWidgets
.
QLabel
(
self
.
pressureBox
)
self
.
p_max_label
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
57
,
21
))
self
.
p_max_label
.
setStyleSheet
(
"border: rgb(255,255,255)"
)
self
.
p_max_label
.
setObjectName
(
"p_max_label"
)
self
.
p_min_label
=
QtWidgets
.
QLabel
(
self
.
pressureBox
)
self
.
p_min_label
.
setGeometry
(
QtCore
.
QRect
(
20
,
60
,
57
,
21
))
self
.
p_min_label
.
setStyleSheet
(
"border: rgb(255,255,255)"
)
self
.
p_min_label
.
setObjectName
(
"p_min_label"
)
self
.
p_min
=
QtWidgets
.
QLineEdit
(
self
.
pressureBox
)
self
.
p_min
.
setGeometry
(
QtCore
.
QRect
(
80
,
60
,
61
,
21
))
self
.
p_min
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"color:rgb(255,255,255);"
)
self
.
p_min
.
setObjectName
(
"p_min"
)
self
.
timeGBox
=
QtWidgets
.
QGroupBox
(
self
.
scaleBox
)
self
.
timeGBox
.
setGeometry
(
QtCore
.
QRect
(
90
,
140
,
211
,
71
))
self
.
timeGBox
.
setStyleSheet
(
""
)
self
.
timeGBox
.
setObjectName
(
"timeGBox"
)
self
.
t_max
=
QtWidgets
.
QLineEdit
(
self
.
timeGBox
)
self
.
t_max
.
setGeometry
(
QtCore
.
QRect
(
140
,
30
,
61
,
21
))
self
.
t_max
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"color:rgb(255,255,255);"
)
self
.
t_max
.
setObjectName
(
"t_max"
)
self
.
t_max_label
=
QtWidgets
.
QLabel
(
self
.
timeGBox
)
self
.
t_max_label
.
setGeometry
(
QtCore
.
QRect
(
10
,
30
,
131
,
21
))
self
.
t_max_label
.
setStyleSheet
(
"border: rgb(255,255,255)"
)
self
.
t_max_label
.
setObjectName
(
"t_max_label"
)
self
.
samplingBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
samplingBox
.
setGeometry
(
QtCore
.
QRect
(
20
,
250
,
191
,
71
))
self
.
samplingBox
.
setStyleSheet
(
"border: 2px solid rgb(255, 75, 0);
\n
"
""
)
self
.
samplingBox
.
setObjectName
(
"samplingBox"
)
self
.
samplingCBox
=
QtWidgets
.
QComboBox
(
self
.
samplingBox
)
self
.
samplingCBox
.
setGeometry
(
QtCore
.
QRect
(
40
,
30
,
101
,
27
))
self
.
samplingCBox
.
setStyleSheet
(
"background-color:rgb(53, 53, 53)"
)
self
.
samplingCBox
.
setObjectName
(
"samplingCBox"
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
samplingCBox
.
addItem
(
""
)
self
.
pressNameGBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
pressNameGBox
.
setGeometry
(
QtCore
.
QRect
(
220
,
250
,
201
,
71
))
self
.
pressNameGBox
.
setStyleSheet
(
"border: 2px solid rgb(27, 144, 0);
\n
"
""
)
self
.
pressNameGBox
.
setObjectName
(
"pressNameGBox"
)
self
.
pressName
=
QtWidgets
.
QLineEdit
(
self
.
pressNameGBox
)
self
.
pressName
.
setGeometry
(
QtCore
.
QRect
(
50
,
30
,
111
,
31
))
self
.
pressName
.
setStyleSheet
(
"font: 12pt
\"
Noto Serif
\"
;
\n
"
"background-color:rgb(53, 53, 53);
\n
"
"color:rgb(255,255,255);"
)
self
.
pressName
.
setObjectName
(
"pressName"
)
self
.
absValGBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
absValGBox
.
setGeometry
(
QtCore
.
QRect
(
20
,
560
,
401
,
111
))
self
.
absValGBox
.
setStyleSheet
(
"border: 2px solid rgb(26, 149, 172);
\n
"
""
)
self
.
absValGBox
.
setObjectName
(
"absValGBox"
)
self
.
forceGBox
=
QtWidgets
.
QGroupBox
(
self
.
absValGBox
)
self
.
forceGBox
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
161
,
71
))
self
.
forceGBox
.
setStyleSheet
(
""
)
self
.
forceGBox
.
setObjectName
(
"forceGBox"
)
self
.
forceLabel
=
QtWidgets
.
QLabel
(
self
.
forceGBox
)
self
.
forceLabel
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
121
,
31
))
self
.
forceLabel
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"color:rgb(255,255,255);
\n
"
"font: 14pt
\"
Noto Serif
\"
;"
)
self
.
forceLabel
.
setObjectName
(
"forceLabel"
)
self
.
calibratorGBox
=
QtWidgets
.
QGroupBox
(
self
.
absValGBox
)
self
.
calibratorGBox
.
setGeometry
(
QtCore
.
QRect
(
220
,
30
,
161
,
71
))
self
.
calibratorGBox
.
setStyleSheet
(
""
)
self
.
calibratorGBox
.
setObjectName
(
"calibratorGBox"
)
self
.
calibratorLabel
=
QtWidgets
.
QLabel
(
self
.
calibratorGBox
)
self
.
calibratorLabel
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
131
,
31
))
self
.
calibratorLabel
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"color:rgb(255,255,255);
\n
"
"font: 14pt
\"
Noto Serif
\"
;"
)
self
.
calibratorLabel
.
setObjectName
(
"calibratorLabel"
)
self
.
arqSalvoLabel
=
QtWidgets
.
QLabel
(
self
.
centralWidget
)
self
.
arqSalvoLabel
.
setGeometry
(
QtCore
.
QRect
(
430
,
560
,
921
,
111
))
self
.
arqSalvoLabel
.
setStyleSheet
(
"padding: 2px;
\n
"
"border: 2px solid rgb(5, 5, 5);
\n
"
"font: normal 10pt
\"
FreeMono
\"
;"
)
self
.
arqSalvoLabel
.
setText
(
""
)
self
.
arqSalvoLabel
.
setObjectName
(
"arqSalvoLabel"
)
self
.
cronometroBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
cronometroBox
.
setGeometry
(
QtCore
.
QRect
(
20
,
340
,
401
,
201
))
self
.
cronometroBox
.
setStyleSheet
(
"border: 2px solid rgb(123, 0, 129);"
)
self
.
cronometroBox
.
setObjectName
(
"cronometroBox"
)
self
.
timerGBox
=
QtWidgets
.
QGroupBox
(
self
.
cronometroBox
)
self
.
timerGBox
.
setGeometry
(
QtCore
.
QRect
(
10
,
30
,
211
,
71
))
self
.
timerGBox
.
setStyleSheet
(
"
\n
"
""
)
self
.
timerGBox
.
setObjectName
(
"timerGBox"
)
self
.
timerLabel
=
QtWidgets
.
QLabel
(
self
.
timerGBox
)
self
.
timerLabel
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
81
,
31
))
self
.
timerLabel
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"border: 1px solid rgb(255,255,255);
\n
"
"color:rgb(255,255,255);
\n
"
"font: 75 12pt
\"
Noto Serif
\"
;"
)
self
.
timerLabel
.
setObjectName
(
"timerLabel"
)
self
.
startTimerButton
=
QtWidgets
.
QPushButton
(
self
.
timerGBox
)
self
.
startTimerButton
.
setGeometry
(
QtCore
.
QRect
(
130
,
10
,
61
,
21
))
self
.
startTimerButton
.
setStyleSheet
(
"border: 1px solid rgb(255,255,255);
\n
"
"background-color: rgb(80,80,80);"
)
self
.
startTimerButton
.
setObjectName
(
"startTimerButton"
)
self
.
stopTimerButton
=
QtWidgets
.
QPushButton
(
self
.
timerGBox
)
self
.
stopTimerButton
.
setGeometry
(
QtCore
.
QRect
(
130
,
40
,
61
,
21
))
self
.
stopTimerButton
.
setStyleSheet
(
"border: 1px solid rgb(255,255,255);
\n
"
"background-color: rgb(80,80,80);"
)
self
.
stopTimerButton
.
setObjectName
(
"stopTimerButton"
)
self
.
startTimeGBox
=
QtWidgets
.
QGroupBox
(
self
.
cronometroBox
)
self
.
startTimeGBox
.
setGeometry
(
QtCore
.
QRect
(
240
,
30
,
151
,
71
))
self
.
startTimeGBox
.
setStyleSheet
(
""
)
self
.
startTimeGBox
.
setObjectName
(
"startTimeGBox"
)
self
.
startTimeLabel
=
QtWidgets
.
QLabel
(
self
.
startTimeGBox
)
self
.
startTimeLabel
.
setGeometry
(
QtCore
.
QRect
(
30
,
30
,
91
,
31
))
self
.
startTimeLabel
.
setStyleSheet
(
"background-color:rgb(80, 80,80);
\n
"
"color:rgb(255,255,255);
\n
"
"font: 14pt
\"
Noto Serif
\"
;"
)
self
.
startTimeLabel
.
setObjectName
(
"startTimeLabel"
)
self
.
currentTimeGBox
=
QtWidgets
.
QGroupBox
(
self
.
cronometroBox
)
self
.
currentTimeGBox
.
setGeometry
(
QtCore
.
QRect
(
240
,
120
,
151
,
71
))
self
.
currentTimeGBox
.
setStyleSheet
(
""
)
self
.
currentTimeGBox
.
setObjectName
(
"currentTimeGBox"
)
self
.
currentTimeLabel
=
QtWidgets
.
QLabel
(
self
.
currentTimeGBox
)
self
.
currentTimeLabel
.
setGeometry
(
QtCore
.
QRect
(
30
,
30
,
91
,
31
))
self
.
currentTimeLabel
.
setStyleSheet
(
"background-color:rgb(80, 80,80);
\n
"
"color:rgb(255,255,255);
\n
"
"font: 14pt
\"
Noto Serif
\"
;"
)
self
.
currentTimeLabel
.
setObjectName
(
"currentTimeLabel"
)
self
.
regTimerGBox
=
QtWidgets
.
QGroupBox
(
self
.
cronometroBox
)
self
.
regTimerGBox
.
setGeometry
(
QtCore
.
QRect
(
10
,
120
,
211
,
71
))
self
.
regTimerGBox
.
setStyleSheet
(
""
)
self
.
regTimerGBox
.
setObjectName
(
"regTimerGBox"
)
self
.
startRegTimerButton
=
QtWidgets
.
QPushButton
(
self
.
regTimerGBox
)
self
.
startRegTimerButton
.
setGeometry
(
QtCore
.
QRect
(
130
,
10
,
61
,
21
))
self
.
startRegTimerButton
.
setStyleSheet
(
"border: 1px solid rgb(255,255,255);
\n
"
"background-color: rgb(80,80,80);"
)
self
.
startRegTimerButton
.
setObjectName
(
"startRegTimerButton"
)
self
.
regTimerLabel
=
QtWidgets
.
QLineEdit
(
self
.
regTimerGBox
)
self
.
regTimerLabel
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
81
,
31
))
self
.
regTimerLabel
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"border: 1px solid rgb(255,255,255);
\n
"
"color:rgb(255,255,255);
\n
"
"font: 75 12pt
\"
Noto Serif
\"
;"
)
self
.
regTimerLabel
.
setObjectName
(
"regTimerLabel"
)
self
.
stopRegTimerButton
=
QtWidgets
.
QPushButton
(
self
.
cronometroBox
)
self
.
stopRegTimerButton
.
setGeometry
(
QtCore
.
QRect
(
140
,
160
,
61
,
21
))
self
.
stopRegTimerButton
.
setStyleSheet
(
"background-color: rgb(80,80,80);
\n
"
"border: 1px solid rgb(255,255,255);"
)
self
.
stopRegTimerButton
.
setObjectName
(
"stopRegTimerButton"
)
CalibracaoPressaoW
.
setCentralWidget
(
self
.
centralWidget
)
self
.
menuBar
=
QtWidgets
.
QMenuBar
(
CalibracaoPressaoW
)
self
.
menuBar
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
1366
,
24
))
self
.
menuBar
.
setObjectName
(
"menuBar"
)
self
.
fileMenu
=
QtWidgets
.
QMenu
(
self
.
menuBar
)
self
.
fileMenu
.
setObjectName
(
"fileMenu"
)
self
.
stageMenu
=
QtWidgets
.
QMenu
(
self
.
menuBar
)
self
.
stageMenu
.
setObjectName
(
"stageMenu"
)
self
.
serialMenu
=
QtWidgets
.
QMenu
(
self
.
menuBar
)
self
.
serialMenu
.
setObjectName
(
"serialMenu"
)
self
.
playPauseButton
=
QtWidgets
.
QMenu
(
self
.
menuBar
)
self
.
playPauseButton
.
setObjectName
(
"playPauseButton"
)
self
.
finalizeButton
=
QtWidgets
.
QMenu
(
self
.
menuBar
)
self
.
finalizeButton
.
setObjectName
(
"finalizeButton"
)
CalibracaoPressaoW
.
setMenuBar
(
self
.
menuBar
)
self
.
menuStatusBar
=
QtWidgets
.
QStatusBar
(
CalibracaoPressaoW
)
self
.
menuStatusBar
.
setObjectName
(
"menuStatusBar"
)
CalibracaoPressaoW
.
setStatusBar
(
self
.
menuStatusBar
)
self
.
alternaCalibraP
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
alternaCalibraP
.
setObjectName
(
"alternaCalibraP"
)
self
.
alternaCalibraT
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
alternaCalibraT
.
setObjectName
(
"alternaCalibraT"
)
self
.
alternaProc
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
alternaProc
.
setObjectName
(
"alternaProc"
)
self
.
openButton
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
openButton
.
setIconVisibleInMenu
(
True
)
self
.
openButton
.
setObjectName
(
"openButton"
)
self
.
actionSalvar
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
actionSalvar
.
setObjectName
(
"actionSalvar"
)
self
.
actionSalvar_Como
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
actionSalvar_Como
.
setObjectName
(
"actionSalvar_Como"
)
self
.
saveButton
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
saveButton
.
setObjectName
(
"saveButton"
)
self
.
saveAsButton
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
saveAsButton
.
setObjectName
(
"saveAsButton"
)
self
.
selectPortaUSB
=
QtWidgets
.
QAction
(
CalibracaoPressaoW
)
self
.
selectPortaUSB
.
setObjectName
(
"selectPortaUSB"
)
self
.
fileMenu
.
addAction
(
self
.
openButton
)
self
.
fileMenu
.
addAction
(
self
.
saveButton
)
self
.
fileMenu
.
addAction
(
self
.
saveAsButton
)
self
.
stageMenu
.
addAction
(
self
.
alternaCalibraP
)
self
.
stageMenu
.
addAction
(
self
.
alternaCalibraT
)
self
.
stageMenu
.
addAction
(
self
.
alternaProc
)
self
.
menuBar
.
addAction
(
self
.
fileMenu
.
menuAction
())
self
.
menuBar
.
addAction
(
self
.
stageMenu
.
menuAction
())
self
.
menuBar
.
addAction
(
self
.
serialMenu
.
menuAction
())
self
.
menuBar
.
addAction
(
self
.
playPauseButton
.
menuAction
())
self
.
menuBar
.
addAction
(
self
.
finalizeButton
.
menuAction
())
self
.
retranslateUi
(
CalibracaoPressaoW
)
QtCore
.
QMetaObject
.
connectSlotsByName
(
CalibracaoPressaoW
)
def
retranslateUi
(
self
,
CalibracaoPressaoW
):
_translate
=
QtCore
.
QCoreApplication
.
translate
CalibracaoPressaoW
.
setWindowTitle
(
_translate
(
"CalibracaoPressaoW"
,
"SADAMAP - Análise de Dados: Etapa 1 - Calibração de Pressão"
))
self
.
scaleBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Escalas de Visualização (Range)"
))
self
.
forceBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Força"
))
self
.
f_max
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"32700"
))
self
.
f_max_label
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Máximo:"
))
self
.
f_min_label
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Mínimo:"
))
self
.
f_min
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"0"
))
self
.
pressureBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Tensão no Calibrante"
))
self
.
p_max
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"32700"
))
self
.
p_max_label
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Máximo:"
))
self
.
p_min_label
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Mínimo:"
))
self
.
p_min
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"0"
))
self
.
timeGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Tempo"
))
self
.
t_max
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"100"
))
self
.
t_max_label
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Intervalo (amostras):"
))
self
.
samplingBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Amostragem"
))
self
.
samplingCBox
.
setItemText
(
0
,
_translate
(
"CalibracaoPressaoW"
,
"100 mseg"
))
self
.
samplingCBox
.
setItemText
(
1
,
_translate
(
"CalibracaoPressaoW"
,
"200 mseg"
))
self
.
samplingCBox
.
setItemText
(
2
,
_translate
(
"CalibracaoPressaoW"
,
"500 mseg"
))
self
.
samplingCBox
.
setItemText
(
3
,
_translate
(
"CalibracaoPressaoW"
,
"1 seg"
))
self
.
samplingCBox
.
setItemText
(
4
,
_translate
(
"CalibracaoPressaoW"
,
"1.5 seg"
))
self
.
samplingCBox
.
setItemText
(
5
,
_translate
(
"CalibracaoPressaoW"
,
"2 seg"
))
self
.
samplingCBox
.
setItemText
(
6
,
_translate
(
"CalibracaoPressaoW"
,
"2.5 seg"
))
self
.
samplingCBox
.
setItemText
(
7
,
_translate
(
"CalibracaoPressaoW"
,
"5 seg"
))
self
.
samplingCBox
.
setItemText
(
8
,
_translate
(
"CalibracaoPressaoW"
,
"10 seg"
))
self
.
pressNameGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Prensa"
))
self
.
pressName
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Pr 0 Tonf"
))
self
.
absValGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Valores Absolutos"
))
self
.
forceGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Força"
))
self
.
forceLabel
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"0 Tonf"
))
self
.
calibratorGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Tensão no Calibrante"
))
self
.
calibratorLabel
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"0 mV"
))
self
.
cronometroBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Timer"
))
self
.
timerGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Cronômetro"
))
self
.
timerLabel
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"0.00 s"
))
self
.
startTimerButton
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Iniciar"
))
self
.
stopTimerButton
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Parar"
))
self
.
startTimeGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Horário de Início"
))
self
.
startTimeLabel
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"00:00:00"
))
self
.
currentTimeGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Horário Atual"
))
self
.
currentTimeLabel
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"00:00:00"
))
self
.
regTimerGBox
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Cont. Regressivo"
))
self
.
startRegTimerButton
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Iniciar"
))
self
.
regTimerLabel
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"0.00s"
))
self
.
stopRegTimerButton
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Parar"
))
self
.
fileMenu
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Arquivo"
))
self
.
stageMenu
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Etapa"
))
self
.
serialMenu
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Porta"
))
self
.
playPauseButton
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Iniciar/Pausar"
))
self
.
finalizeButton
.
setTitle
(
_translate
(
"CalibracaoPressaoW"
,
"Finalizar"
))
self
.
alternaCalibraP
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Calibração P"
))
self
.
alternaCalibraT
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Calibração T"
))
self
.
alternaProc
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Processamento"
))
self
.
openButton
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Abrir"
))
self
.
actionSalvar
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Salvar"
))
self
.
actionSalvar_Como
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Salvar Como"
))
self
.
saveButton
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Salvar"
))
self
.
saveAsButton
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Salvar Como"
))
self
.
selectPortaUSB
.
setText
(
_translate
(
"CalibracaoPressaoW"
,
"Selecionar porta USB"
))
MainWindow.py
0 → 100644
View file @
e1f9c06c
import
sys
from
PyQt5
import
QtWidgets
from
CalibracaoPressaoW
import
Ui_CalibracaoPressaoW
class
Ui_MainWindow
(
object
):
def
__init__
(
self
):
self
.
app
=
QtWidgets
.
QApplication
(
sys
.
argv
)
self
.
dialog
=
QtWidgets
.
QMainWindow
()
self
.
ui
=
Ui_CalibracaoPressaoW
()
self
.
ui
.
setupUi
(
self
.
dialog
)
self
.
dialog
.
showMaximized
()
\ No newline at end of file
Resources/UI/CalibracaoPressaoW.ui
0 → 100644
View file @
e1f9c06c
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
CalibracaoPressaoW
</class>
<widget
class=
"QMainWindow"
name=
"CalibracaoPressaoW"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
1366
</width>
<height>
756
</height>
</rect>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
817
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"windowTitle"
>
<string>
SADAMAP - Análise de Dados: Etapa 1 - Calibração de Pressão
</string>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color:rgb(53, 53, 53);
color: rgb(255,255,255);
font: normal 11pt
"
Lato
"
;
</string>
</property>
<widget
class=
"QWidget"
name=
"centralWidget"
>
<property
name=
"autoFillBackground"
>
<bool>
false
</bool>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
QGroupBox::title {
top: 4px;
left: 4px;
}
QGroupBox {
background-color: rgb(65, 65, 65);
border-radius: 4px;
}
QGroupBox QGroupBox, QLabel {
background-color: rgb(70, 70, 70);
}
QGroupBox QLineEdit {
font: bold 13px
"
FreeMono
"
;
}
</string>
</property>
<widget
class=
"QGraphicsView"
name=
"CentralGraph"
>
<property
name=
"geometry"
>
<rect>
<x>
430
</x>
<y>
10
</y>
<width>
921
</width>
<height>
531
</height>
</rect>
</property>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Fixed"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"verticalScrollBarPolicy"
>
<enum>
Qt::ScrollBarAlwaysOff
</enum>
</property>
<property
name=
"horizontalScrollBarPolicy"
>
<enum>
Qt::ScrollBarAlwaysOff
</enum>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignBottom|Qt::AlignJustify
</set>
</property>
</widget>
<widget
class=
"QGroupBox"
name=
"scaleBox"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<y>
10
</y>
<width>
401
</width>
<height>
221
</height>
</rect>
</property>
<property
name=
"toolTip"
>
<string
notr=
"true"
/>
</property>
<property
name=
"statusTip"
>
<string
notr=
"true"
/>
</property>
<property
name=
"whatsThis"
>
<string
notr=
"true"
/>
</property>
<property
name=
"autoFillBackground"
>
<bool>
false
</bool>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border: 2px solid rgb(194, 8, 6);
</string>
</property>
<property
name=
"title"
>
<string>
Escalas de Visualização (Range)
</string>
</property>
<property
name=
"flat"
>
<bool>
false
</bool>
</property>
<property
name=
"checkable"
>
<bool>
false
</bool>
</property>
<widget
class=
"QGroupBox"
name=
"forceBox"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
30
</y>
<width>
181
</width>
<height>
101
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
/>
</property>
<property
name=
"title"
>
<string>
Força
</string>
</property>
<widget
class=
"QLineEdit"
name=
"f_max"
>
<property
name=
"geometry"
>
<rect>
<x>
80
</x>
<y>
30
</y>
<width>
61
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color: rgb(80,80,80);
color:rgb(255,255,255);
</string>
</property>
<property
name=
"text"
>
<string>
32700
</string>
</property>
</widget>
<widget
class=
"QLabel"
name=
"f_max_label"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<y>
30
</y>
<width>
57
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border: rgb(255,255,255)
</string>
</property>
<property
name=
"text"
>
<string>
Máximo:
</string>
</property>
</widget>
<widget
class=
"QLabel"
name=
"f_min_label"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<y>
60
</y>
<width>
57
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border:rgb(255,255,255)
</string>
</property>
<property
name=
"text"
>
<string>
Mínimo:
</string>
</property>
</widget>
<widget
class=
"QLineEdit"
name=
"f_min"
>
<property
name=
"geometry"
>
<rect>
<x>
80
</x>
<y>
60
</y>
<width>
61
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color: rgb(80,80,80);
color:rgb(255,255,255);
</string>
</property>
<property
name=
"text"
>
<string>
0
</string>
</property>
</widget>
</widget>
<widget
class=
"QGroupBox"
name=
"pressureBox"
>
<property
name=
"geometry"
>
<rect>
<x>
210
</x>
<y>
30
</y>
<width>
181
</width>
<height>
101
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
</string>
</property>
<property
name=
"title"
>
<string>
Tensão no Calibrante
</string>
</property>
<widget
class=
"QLineEdit"
name=
"p_max"
>
<property
name=
"geometry"
>
<rect>