Utility functions for psy-view.

Classes:

QRightPushButton

A push button that acts differently when right-clicked

Functions:

add_pushbutton(label[, connections, ...])

get_icon(name[, ending])

class psy_view.utils.QRightPushButton[source]

Bases: QPushButton

A push button that acts differently when right-clicked

Methods:

mousePressEvent(self, e)

Attributes:

rightclicked(*args, **kwargs)

mousePressEvent(self, e: QMouseEvent | None)[source]
rightclicked(*args, **kwargs)
psy_view.utils.add_pushbutton(label: str, connections: List[Callable] | Callable | None = None, tooltip: str | None = None, layout: QLayout | None = None, icon: bool = False, toolbutton: bool = False, *args, **kwargs) QPushButton | QToolButton[source]
psy_view.utils.get_icon(name: str, ending: str = '.png') str[source]