fancywidgets.pyqtgraphBased.parametertree package

Submodules

fancywidgets.pyqtgraphBased.parametertree.Parameter module

class fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter(**opts)[source]

Bases: pyqtgraph.parametertree.Parameter.Parameter

add new options to pyQtGraphs ‘Parameter’-Class to be fully interactive and log all changes:

  • ‘duplicatable’ (see ParameterItem)
  • ‘key’ -> name or QKeySequence of the shortcut (see ParameterItem)
  • ‘keyParent’ -> QWidget where the key is active
  • ‘isGroup’ -> True/False (coded in ParameterItem)
  • ‘icon’ -> ‘path/to/icon’ (see ParameterItem)
blockSignals(boolean)[source]

add block/unblock of keyboard shortcut

duplicate(recursive=True)[source]
hasVisibleChilds()[source]
isVisible()[source]
path()[source]
remove()[source]
replaceWith(param)[source]

replace this parameter with another

sigDuplicated
sigRemoved

fancywidgets.pyqtgraphBased.parametertree.ParameterItem module

class fancywidgets.pyqtgraphBased.parametertree.ParameterItem.ParameterItem(param, depth=0)[source]

Bases: pyqtgraph.parametertree.ParameterItem.ParameterItem

setShortcut(key, parent)[source]
slideChild(nPos)[source]
treeWidgetChanged()[source]
updateDepth(depth)[source]

fancywidgets.pyqtgraphBased.parametertree.ParameterTree module

class fancywidgets.pyqtgraphBased.parametertree.ParameterTree.ParameterTree(parameter=None, showHeader=False, showTop=False, animated=True)[source]

Bases: pyqtgraph.parametertree.ParameterTree.ParameterTree

returnParameterOnKlick(activate, executeMethod=None)[source]

fancywidgets.pyqtgraphBased.parametertree.newParameterTypes module

class fancywidgets.pyqtgraphBased.parametertree.newParameterTypes.EmptyParameter(**opts)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter

itemClass

alias of ParameterItem

class fancywidgets.pyqtgraphBased.parametertree.newParameterTypes.MenuParameter(**opts)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter

aboutToShow
itemClass

alias of MenuParameterItem

value()[source]
class fancywidgets.pyqtgraphBased.parametertree.newParameterTypes.MenuParameterItem(param, depth)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.parameterTypes.WidgetParameterItem

Group parameters are used mainly as a generic parent item that holds (and groups!) a set of child parameters. It also provides a simple mechanism for displaying a button or combo that can be used to add new parameters to the group.

makeWidget()[source]
class fancywidgets.pyqtgraphBased.parametertree.newParameterTypes.ResetListParameter(**opts)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.parameterTypes.ListParameter

itemClass

alias of ResetListParameterItem

class fancywidgets.pyqtgraphBased.parametertree.newParameterTypes.ResetListParameterItem(param, depth)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.parameterTypes.ListParameterItem

a list-Parameter that always returning to the first item

limitsChanged(param, limits)[source]
valueChanged(*args, **kwargs)[source]

fancywidgets.pyqtgraphBased.parametertree.parameterTypes module

class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.ActionParameter(**opts)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter

Used for displaying a button within the tree.

activate()[source]
itemClass

alias of ActionParameterItem

sigActivated
class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.ActionParameterItem(param, depth)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.ParameterItem.ParameterItem

buttonClicked()[source]
nameChanged(name)[source]

Pass method, otherwise name is additionally set in tableView

paramRenamed(param, name)[source]
treeWidgetChanged()[source]
class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.EventProxy(qobj, callback)[source]

Bases: PyQt4.QtCore.QObject

eventFilter(obj, ev)[source]
class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.GroupParameter(**opts)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter

Group parameters are used mainly as a generic parent item that holds (and groups!) a set of child parameters.

It also provides a simple mechanism for displaying a button or combo that can be used to add new parameters to the group. To enable this, the group must be initialized with the ‘addText’ option (the text will be displayed on a button which, when clicked, will cause addNew() to be called). If the ‘addList’ option is specified as well, then a dropdown-list of addable items will be displayed instead of a button.

addNew(typ=None)[source]

This method is called when the user has requested to add a new item to the group.

itemClass

alias of GroupParameterItem

setAddList(vals)[source]

Change the list of options available for the user to add to the group.

class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.GroupParameterItem(param, depth)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.ParameterItem.ParameterItem

Group parameters are used mainly as a generic parent item that holds (and groups!) a set of child parameters. It also provides a simple mechanism for displaying a button or combo that can be used to add new parameters to the group.

addChanged()[source]

Called when “add new” combo is changed The parameter MUST have an ‘addNew’ method defined.

addChild(child)[source]
addClicked()[source]

Called when “add new” button is clicked The parameter MUST have an ‘addNew’ method defined.

optsChanged(param, changed)[source]
treeWidgetChanged()[source]
updateAddList()[source]
updateDepth(depth)[source]
class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.ListParameter(**opts)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter

itemClass

alias of ListParameterItem

static mapping(limits)[source]
setLimits(limits)[source]
class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.ListParameterItem(param, depth)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.parameterTypes.WidgetParameterItem

WidgetParameterItem subclass providing comboBox that lets the user select from a list of options.

limitsChanged(param, limits)[source]
makeWidget()[source]
setValue(val)[source]
value()[source]
class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.SimpleParameter(*args, **kargs)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter

colorValue()[source]
itemClass

alias of WidgetParameterItem

saveColorState()[source]
class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.TextParameter(**opts)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter

Editable string; displayed as large text box in the tree.

itemClass

alias of TextParameterItem

class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.TextParameterItem(param, depth)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.parameterTypes.WidgetParameterItem

makeWidget()[source]
selected(value)[source]
treeWidgetChanged()[source]
class fancywidgets.pyqtgraphBased.parametertree.parameterTypes.WidgetParameterItem(param, depth)[source]

Bases: fancywidgets.pyqtgraphBased.parametertree.ParameterItem.ParameterItem

ParameterTree item with:

  • label in second column for displaying value
  • simple widget for editing value (displayed instead of label when item is selected)
  • button that resets value to default
Registered Types:  
int Displays a SpinBox in integer mode.
float Displays a SpinBox.
bool Displays a QCheckBox
str Displays a QLineEdit
color Displays a ColorButton
colormap Displays a GradientWidget

This class can be subclassed by overriding makeWidget() to provide a custom widget.

defaultChanged(param, value)[source]
defaultClicked()[source]
hideEditor()[source]
isFocusable()[source]
limitsChanged(param, limits)[source]

Called when the parameter’s limits have changed

makeWidget()[source]

Return a single widget that should be placed in the second tree column. The widget must be given three attributes:

sigChanged a signal that is emitted when the widget’s value is changed
value a function that returns the value
setValue a function that sets the value

This is a good function to override in subclasses.

optsChanged(param, opts)[source]

Called when any options are changed that are not name, value, default, or limits

selected(sel)[source]

Called when this item has been selected (sel=True) OR deselected (sel=False)

setFocus()[source]
showEditor()[source]
treeWidgetChanged()[source]

Called when this item is added or removed from a tree.

updateDefaultBtn()[source]
updateDisplayLabel(value=None)[source]

Update the display label to reflect the value of the parameter.

valueChanged(param, val, force=False)[source]
widgetEventFilter(obj, ev)[source]
widgetValueChanged()[source]
widgetValueChanging(*args)[source]

Called when the widget’s value is changing, but not finalized. For example: editing text before pressing enter or changing focus.