QNodeEditor.graphics.scene.NodeSceneGraphics#
- class QNodeEditor.graphics.scene.NodeSceneGraphics(scene: NodeScene, parent: ~PyQt5.QtWidgets.QWidget = None, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>)#
Bases:
QGraphicsSceneExtension of QGraphicsScene for drawing node scene.
Properties
Get or set the theme of the node scene.
Methods
Create new node scene graphics.
drawBackgroundDraw the scene background.
Set the size of the scene.
- __init__(scene: NodeScene, parent: ~PyQt5.QtWidgets.QWidget = None, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>)#
Create new node scene graphics.
- set_size(width: int, height: int) None#
Set the size of the scene.
- Parameters:
width (int or float) – Scene width
height (int or float) – Scene height
- Return type:
None