Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EO Time Series Viewer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Jakimow
EO Time Series Viewer
Commits
a199b75c
Commit
a199b75c
authored
11 years ago
by
Luke Campagnola
Browse files
Options
Downloads
Patches
Plain Diff
Added Flowchart.sigChartChanged
parent
e62c833a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+6
-0
6 additions, 0 deletions
CHANGELOG
pyqtgraph/flowchart/Flowchart.py
+6
-2
6 additions, 2 deletions
pyqtgraph/flowchart/Flowchart.py
with
12 additions
and
2 deletions
CHANGELOG
+
6
−
0
View file @
a199b75c
...
...
@@ -10,12 +10,18 @@ pyqtgraph-0.9.9 [unreleased]
commit will result in a more descriptive version string.
- Speed improvements in functions.makeARGB
- ImageItem is faster by avoiding makeQImage(transpose=True)
- ComboBox will raise error when adding multiple items of the same name
New Features:
- New HDF5 example for working with very large datasets
- Added Qt.loadUiType function for PySide
- Simplified Profilers; can be activated with environmental variables
- Added Dock.raiseDock() method
- ComboBox updates:
- Essentially a graphical interface to dict; all items have text and value
- Assigns previously-selected text after list is cleared and repopulated
- Get, set current value
- Added Flowchart.sigChartChanged
Bugfixes:
- PlotCurveItem now has correct clicking behavior--clicks within a few px
...
...
This diff is collapsed.
Click to expand it.
pyqtgraph/flowchart/Flowchart.py
+
6
−
2
View file @
a199b75c
...
...
@@ -58,14 +58,15 @@ def toposort(deps, nodes=None, seen=None, stack=None, depth=0):
class
Flowchart
(
Node
):
sigFileLoaded
=
QtCore
.
Signal
(
object
)
sigFileSaved
=
QtCore
.
Signal
(
object
)
#sigOutputChanged = QtCore.Signal() ## inherited from Node
sigChartLoaded
=
QtCore
.
Signal
()
sigStateChanged
=
QtCore
.
Signal
()
sigStateChanged
=
QtCore
.
Signal
()
# called when output is expected to have changed
sigChartChanged
=
QtCore
.
Signal
(
object
,
object
,
object
)
# called when nodes are added, removed, or renamed.
# (self, action, node)
def
__init__
(
self
,
terminals
=
None
,
name
=
None
,
filePath
=
None
,
library
=
None
):
self
.
library
=
library
or
LIBRARY
...
...
@@ -218,6 +219,7 @@ class Flowchart(Node):
node
.
sigClosed
.
connect
(
self
.
nodeClosed
)
node
.
sigRenamed
.
connect
(
self
.
nodeRenamed
)
node
.
sigOutputChanged
.
connect
(
self
.
nodeOutputChanged
)
self
.
sigChartChanged
.
emit
(
self
,
'
add
'
,
node
)
def
removeNode
(
self
,
node
):
node
.
close
()
...
...
@@ -237,11 +239,13 @@ class Flowchart(Node):
node
.
sigOutputChanged
.
disconnect
(
self
.
nodeOutputChanged
)
except
TypeError
:
pass
self
.
sigChartChanged
.
emit
(
self
,
'
remove
'
,
node
)
def
nodeRenamed
(
self
,
node
,
oldName
):
del
self
.
_nodes
[
oldName
]
self
.
_nodes
[
node
.
name
()]
=
node
self
.
widget
().
nodeRenamed
(
node
,
oldName
)
self
.
sigChartChanged
.
emit
(
self
,
'
rename
'
,
node
)
def
arrangeNodes
(
self
):
pass
...
...
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