Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
total_control_app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Drechsler
total_control_app
Commits
94cb7594
Commit
94cb7594
authored
May 31, 2018
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
d7b8c028
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
myGUI.py
myGUI.py
+42
-0
No files found.
myGUI.py
0 → 100644
View file @
94cb7594
# -*- coding: utf-8 -*-
"""
Created on Thu May 31 14:22:48 2018
@author: Usuario
"""
from
ADoutputs
import
daq_AO
,
daq_DO
import
pyqtgraph
as
pg
from
pyqtgraph.Qt
import
QtCore
,
QtGui
app
=
QtGui
.
QApplication
([])
spins
=
[(
"Floating-point spin box, min=0, no maximum."
,
pg
.
SpinBox
(
value
=
5.0
,
bounds
=
[
0
,
None
])
)]
spin2
=
(
"Floating-point spin box, min=0, no maximum."
,
pg
.
SpinBox
(
value
=
5.0
,
bounds
=
[
0
,
None
])
)
win
=
QtGui
.
QMainWindow
()
win
.
setWindowTitle
(
'pyqtgraph example: SpinBox'
)
cw
=
QtGui
.
QWidget
()
layout
=
QtGui
.
QGridLayout
()
cw
.
setLayout
(
layout
)
win
.
setCentralWidget
(
cw
)
win
.
show
()
text
=
"Mi prueba fantastica"
spin
=
pg
.
SpinBox
(
value
=
0.0
,
bounds
=
[
-
10
,
10
],
step
=
.1
)
label
=
QtGui
.
QLabel
(
text
)
layout
.
addWidget
(
label
)
layout
.
addWidget
(
spin
)
analog0
=
daq_AO
(
0
)
def
whenChange
(
sb
):
analog0
.
set_analog_out
(
sb
.
value
())
spin
.
sigValueChanging
.
connect
(
whenChange
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment