gdesk.graphics.items module

class gdesk.graphics.items.Grid(direction, parent=None, scene=None)

Bases: PySide2.QtWidgets.QGraphicsItem

attach_rulers(x_ruler, y_ruler)
boundingRect(self)PySide2.QtCore.QRectF
paint(self, painter: PySide2.QtGui.QPainter, option: PySide2.QtWidgets.QStyleOptionGraphicsItem, widget: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)None
update_grid()
class gdesk.graphics.items.Indicator(color=PySide2.QtCore.Qt.GlobalColor.blue, text=None, parent=None, scene=None)

Bases: PySide2.QtWidgets.QGraphicsPolygonItem

attach_curves(curves)
declutter_ylabels(ymin=- 4000, ymax=0)
mouseMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent)None
mouseReleaseEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent)None
set_ylabel_count(count)
updates_ylabels(x=None)
class gdesk.graphics.items.ItemSignal

Bases: object

connect(func)
emit(*args)
class gdesk.graphics.items.LabelItem(text='', color=PySide2.QtGui.QColor.fromRgbF(0.000000, 0.000000, 0.000000, 1.000000), parent=None, scene=None)

Bases: PySide2.QtWidgets.QGraphicsPolygonItem

makePolygon(box_width)
mouseMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent)None
mouseReleaseEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent)None
updateText(text)
class gdesk.graphics.items.VectorCurve(path, xvector, yvector)

Bases: PySide2.QtWidgets.QGraphicsPathItem

class gdesk.graphics.items.YLabelItem(text='', color=PySide2.QtGui.QColor.fromRgbF(0.000000, 0.000000, 0.000000, 1.000000), parent=None, scene=None)

Bases: PySide2.QtWidgets.QGraphicsPolygonItem

makePolygon()
mouseMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent)None
sortkey()
updateText(text)
update_offset(offset)
gdesk.graphics.items.createCurve(x, y, color=None, z=0, fill=50)