Commit 2ce6196a authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Fixed Parameter.sigValueChanging

parent 00c9c1e2
......@@ -77,6 +77,7 @@ pyqtgraph-0.9.9 [unreleased]
- MeshData can generate edges from face-indexed vertexes
- Fixed multiprocess deadlocks on windows
- Fixed GLGridItem.setSize
- Fixed parametertree.Parameter.sigValueChanging
pyqtgraph-0.9.8 2013-11-24
......@@ -123,6 +123,17 @@ def change(param, changes):
def valueChanging(param, value):
print "Value changing (not finalized):", param, value
# Too lazy for recursion:
for child in p.children():
for ch2 in child.children():
def save():
global state
state = p.saveState()
......@@ -208,12 +208,14 @@ class WidgetParameterItem(ParameterItem):
val = self.widget.value()
newVal = self.param.setValue(val)
def widgetValueChanging(self):
def widgetValueChanging(self, *args):
Called when the widget's value is changing, but not finalized.
For example: editing text before pressing enter or changing focus.
# This is a bit sketchy: assume the last argument of each signal is
# the value..
self.param.sigValueChanging.emit(self.param, args[-1])
def selected(self, sel):
"""Called when this item has been selected (sel=True) OR deselected (sel=False)"""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment