guiqwt.tools

The tools module provides a collection of plot tools :

A plot tool is an object providing various features to a plotting widget (guiqwt.curve.CurvePlot or guiqwt.image.ImagePlot): buttons, menus, selection tools, image I/O tools, etc. To make it work, a tool has to be registered to the plotting widget’s manager, i.e. an instance of the guiqwt.plot.PlotManager class (see the guiqwt.plot module for more details on the procedure).

The CurvePlot and ImagePlot widgets do not provide any PlotManager: the manager has to be created separately. On the contrary, the ready-to-use widgets guiqwt.plot.CurveWidget and guiqwt.plot.ImageWidget are higher-level plotting widgets with integrated manager, tools and panels.

See also

Module guiqwt.plot

Module providing ready-to-use curve and image plotting widgets and dialog boxes

Module guiqwt.curve

Module providing curve-related plot items and plotting widgets

Module guiqwt.image

Module providing image-related plot items and plotting widgets

Example

The following example add all the existing tools to an ImageWidget object for testing purpose:

../_images/image_plot_tools.png

Reference

class guiqwt.tools.RectZoomTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.SelectTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]

Graphical Object Selection Tool

SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.SelectPointTool(manager, mode='reuse', on_active_item=False, title=None, icon=None, tip=None, end_callback=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, marker_style=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.MultiLineTool(manager, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
mouse_press(filter, event)[source]

We create a new shape if it’s the first point otherwise we add a new point

move(filter, event)[source]

moving while holding the button down lets the user position the last created point

mouse_release(filter, event)[source]

Releasing the mouse button validate the last point position

SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.FreeFormTool(manager, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
cancel_point(filter, event)[source]

Reimplement base class method

mouse_press(filter, event)[source]

Reimplement base class method

SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
mouse_release(filter, event)

Releasing the mouse button validate the last point position

move(filter, event)

moving while holding the button down lets the user position the last created point

classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.LabelTool(manager, handle_label_cb=None, label_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.RectangleTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.PointTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.SegmentTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.CircleTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.EllipseTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
handle_final_shape(shape)[source]

To be reimplemented

SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.PlaceAxesTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.AnnotatedRectangleTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.AnnotatedCircleTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.AnnotatedEllipseTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
handle_final_shape(shape)[source]

To be reimplemented

SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.AnnotatedPointTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.AnnotatedSegmentTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.HRangeTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
create_shape()[source]

Create and return the cursor/range shape

SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.DummySeparatorTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
setup_toolbar(toolbar)[source]

Setup tool’s toolbar

setup_context_menu(menu, plot)[source]

If the tool supports it, this method should install an action in the context menu

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.AntiAliasingTool(manager)[source]
activate_command(plot, checked)[source]

Activate tool

update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.DisplayCoordsTool(manager)[source]
create_action_menu(manager)[source]

Create and return menu for the tool’s action

update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.ReverseYAxisTool(manager)[source]
activate_command(plot, checked)[source]

Activate tool

update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.AspectRatioTool(manager)[source]
create_action_menu(manager)[source]

Create and return menu for the tool’s action

activate_command(plot, checked)[source]

Activate tool

lock_aspect_ratio(checked)[source]

Lock aspect ratio

update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.PanelTool(manager)[source]
activate_command(plot, checked)[source]

Activate tool

update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.ItemListPanelTool(manager)[source]
activate_command(plot, checked)

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.ContrastPanelTool(manager)[source]
update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

activate_command(plot, checked)

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.ColormapTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
create_action_menu(manager)[source]

Create and return menu for the tool’s action

activate_command(plot, checked)[source]

Activate tool

update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.XCSPanelTool(manager)[source]
activate_command(plot, checked)

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.YCSPanelTool(manager)[source]
activate_command(plot, checked)

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.CrossSectionTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
setup_shape(shape)[source]

To be reimplemented

activate()[source]

Activate tool

handle_final_shape(shape)[source]

To be reimplemented

update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.AverageCrossSectionTool(manager, setup_shape_cb=None, handle_final_shape_cb=None, shape_style=None, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>, title=None, icon=None, tip=None, switch_to_default_tool=None)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

add_shape_to_plot(plot, p0, p1)

Method called when shape’s rectangular area has just been drawn on screen. Adding the final shape to plot and returning it.

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

handle_final_shape(shape)

To be reimplemented

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_shape(shape)

To be reimplemented

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.SaveAsTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
activate_command(plot, checked)[source]

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.CopyToClipboardTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
activate_command(plot, checked)[source]

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.OpenFileTool(manager, title='Open...', formats='*.*', toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
SIG_OPEN_FILE

Signal emitted by OpenFileTool when a file was opened (arg: filename)

activate_command(plot, checked)[source]

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.OpenImageTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
SIG_OPEN_FILE

Signal emitted by OpenFileTool when a file was opened (arg: filename)

activate_command(plot, checked)

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.SnapshotTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
SIG_TOOL_JOB_FINISHED

Signal emitted by InteractiveTool when tool job is finished

SIG_VALIDATE_TOOL

Signal emitted by InteractiveTool when validating tool action

activate()

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

cursor()

Return tool mouse cursor

classmethod customEvent(self, a0: QEvent | None)
deactivate()

Deactivate tool

classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
get_shape()

Reimplemented RectangularActionTool method

classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.PrintTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
activate_command(plot, checked)[source]

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.SaveItemsTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
activate_command(plot, checked)[source]

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.LoadItemsTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
activate_command(plot, checked)[source]

Activate tool

SIG_OPEN_FILE

Signal emitted by OpenFileTool when a file was opened (arg: filename)

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.AxisScaleTool(manager)[source]
create_action_menu(manager)[source]

Create and return menu for the tool’s action

update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.HelpTool(manager, toolbar_id=<class 'guiqwt.tools.DefaultToolbarID'>)[source]
activate_command(plot, checked)[source]

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.ExportItemDataTool(manager, toolbar_id=None)[source]
activate_command(plot, checked)

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.EditItemDataTool(manager, toolbar_id=None)[source]

Edit item data

activate_command(plot, checked)

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
update_status(plot)

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

class guiqwt.tools.ItemCenterTool(manager, toolbar_id=None)[source]
update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

activate_command(plot, checked)[source]

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str
class guiqwt.tools.DeleteItemTool(manager, toolbar_id=None)[source]
update_status(plot)[source]

called by to allow derived classes to update the states of actions based on the currently active BasePlot

can also be called after an action modifying the BasePlot (e.g. in order to update action states when an item is deselected)

activate_command(plot, checked)[source]

Activate tool

classmethod blockSignals(self, b: bool) bool
classmethod childEvent(self, a0: QChildEvent | None)
classmethod children(self) list[QObject]
classmethod connectNotify(self, signal: QMetaMethod)
create_action(manager)

Create and return tool’s action

create_action_menu(manager)

Create and return menu for the tool’s action

classmethod customEvent(self, a0: QEvent | None)
classmethod deleteLater(self)
classmethod disconnect(a0: QMetaObject.Connection) bool
classmethod disconnect(self) None
classmethod disconnectNotify(self, signal: QMetaMethod)
classmethod dumpObjectInfo(self)
classmethod dumpObjectTree(self)
classmethod dynamicPropertyNames(self) list[QByteArray]
classmethod event(self, a0: QEvent | None) bool
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str) bool
classmethod installEventFilter(self, a0: QObject | None)
classmethod isQuickItemType(self) bool
classmethod isSignalConnected(self, signal: QMetaMethod) bool
classmethod isWidgetType(self) bool
classmethod isWindowType(self) bool
classmethod killTimer(self, id: int)
classmethod metaObject(self) QMetaObject | None
classmethod moveToThread(self, thread: QThread | None)
classmethod objectName(self) str
classmethod parent(self) QObject | None
classmethod property(self, name: str) Any
classmethod pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int
register_plot(baseplot)

Every BasePlot using this tool should call register_plot to notify the tool about this widget using it

classmethod removeEventFilter(self, a0: QObject | None)
classmethod sender(self) QObject | None
classmethod senderSignalIndex(self) int
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)
classmethod setParent(self, a0: QObject | None)
classmethod setProperty(self, name: str, value: Any) bool
set_parent_tool(tool)

Used to organize tools automatically in menu items

setup_context_menu(menu, plot)

If the tool supports it, this method should install an action in the context menu

setup_toolbar(toolbar)

Setup tool’s toolbar

classmethod signalsBlocked(self) bool
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
classmethod thread(self) QThread | None
classmethod timerEvent(self, a0: QTimerEvent | None)
classmethod tr(sourceText: str, disambiguation: str = None, n: int = -1) str