Skip to content

Commit 69efadb

Browse files
adding example
1 parent 52766df commit 69efadb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ QT Editor for the flowpipe framework based on NodeGraphQt.
55

66
![flowpipe-editor](https://raw.githubusercontent.com/jonassorgenfrei/flowpipe-editor/main/docs/img/flowpipe-editor.png)
77

8+
## Example
9+
```python
10+
from flowpipe import Graph
11+
from flowpipe_editor.flowpipe_editor_widget import FlowpipeEditorWidget
12+
13+
graph = Graph(name="Rendering")
14+
15+
# ... create nodes and append to graph ...
16+
window = QtWidgets.QWidget()
17+
18+
flowpipe_editor_widget = FlowpipeEditorWidget(parent=parentWidget)
19+
flowpipe_editor_widget.load_graph(graph)
20+
21+
# .. add widget to window
22+
23+
```
24+
825
## Requirements
926
The requirements can be installed via pip.
1027

0 commit comments

Comments
 (0)