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)
-
sigDuplicated
¶
-
sigRemoved
¶
fancywidgets.pyqtgraphBased.parametertree.ParameterItem module¶
fancywidgets.pyqtgraphBased.parametertree.ParameterTree module¶
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
-
-
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.
-
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
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.
-
itemClass
¶ alias of
ActionParameterItem
-
sigActivated
¶
-
-
class
fancywidgets.pyqtgraphBased.parametertree.parameterTypes.
ActionParameterItem
(param, depth)[source]¶ Bases:
fancywidgets.pyqtgraphBased.parametertree.ParameterItem.ParameterItem
-
class
fancywidgets.pyqtgraphBased.parametertree.parameterTypes.
EventProxy
(qobj, callback)[source]¶ Bases:
PyQt4.QtCore.QObject
-
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
-
-
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.
-
-
class
fancywidgets.pyqtgraphBased.parametertree.parameterTypes.
ListParameter
(**opts)[source]¶ Bases:
fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter
-
itemClass
¶ alias of
ListParameterItem
-
-
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.
-
class
fancywidgets.pyqtgraphBased.parametertree.parameterTypes.
SimpleParameter
(*args, **kargs)[source]¶ Bases:
fancywidgets.pyqtgraphBased.parametertree.Parameter.Parameter
-
itemClass
¶ alias of
WidgetParameterItem
-
-
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
-
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.
-
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