QNodeEditor.graphics.edge.DirectEdgeGraphics#

class QNodeEditor.graphics.edge.DirectEdgeGraphics(edge: Edge, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>)#

Bases: EdgeGraphics

Edge graphics with a straight line between the edge start and end point

Properties

Methods

create_path

Create a straight line between the edge start and end point

__init__(edge: Edge, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>)#

Create new edge graphics.

Parameters:
  • edge (Edge) – Edge these graphics are for

  • theme (Type[Theme], optional) – Theme for the edge graphics (default: DarkTheme)

create_path() QPainterPath#

Create a straight line between the edge start and end point

Returns:

Straight line connecting start and end point

Return type:

QPainterPath