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
21a894d8
Commit
21a894d8
authored
5 years ago
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
very small changes in param tree
parent
f3bdebab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
Butter_Robot.png
Butter_Robot.png
+0
-0
cameraParameterTree.py
subclasses/cameraParameterTree.py
+5
-6
No files found.
Butter_Robot.png
0 → 100644
View file @
21a894d8
18.3 KB
This diff is collapsed.
Click to expand it.
subclasses/cameraParameterTree.py
View file @
21a894d8
...
...
@@ -8,16 +8,11 @@ as well as some customized parameter types
"""
import
pyqtgraph
as
pg
from
pyqtgraph.Qt
import
QtCore
,
QtGui
import
pyqtgraph.parametertree.parameterTypes
as
pTypes
from
pyqtgraph.parametertree
import
Parameter
,
ParameterTree
,
ParameterItem
,
registerParameterType
app
=
QtGui
.
QApplication
([])
## test subclassing parameters
## This parameter automatically generates two child parameters which are always reciprocals of each other
class
BasicAcquisitonParameters
(
pTypes
.
GroupParameter
):
...
...
@@ -84,7 +79,9 @@ class CameraParameterTree(ParameterTree):
self
.
t
=
ParameterTree
()
self
.
t
.
setParameters
(
self
.
p
,
showTop
=
False
)
self
.
t
.
setWindowTitle
(
'Parameter Tree'
)
self
.
save
()
def
change
(
self
,
param
,
changes
):
print
(
"tree changes:"
)
for
param
,
change
,
data
in
changes
:
...
...
@@ -107,6 +104,8 @@ class CameraParameterTree(ParameterTree):
## Start Qt event loop unless running in interactive mode or using pyside.
if
__name__
==
'__main__'
:
app
=
QtGui
.
QApplication
([])
import
sys
param_tree
=
CameraParameterTree
()
win
=
QtGui
.
QWidget
()
...
...
This diff is collapsed.
Click to expand it.
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