-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e08369d
commit aebe915
Showing
11 changed files
with
206 additions
and
208 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from ryven.gui_env import * | ||
from qtpy.QtWidgets import ( | ||
QWidget, | ||
QVBoxLayout, | ||
QLabel, | ||
) | ||
from .nodes import MyNode | ||
|
||
|
||
class MyNodeInspector(NodeInspectorWidget, QWidget): | ||
def __init__(self, params): | ||
NodeInspectorWidget.__init__(self, params) | ||
QWidget.__init__(self) | ||
|
||
self.setLayout(QVBoxLayout()) | ||
self.layout().addWidget(QLabel('This is a custom inspector for MyNode.')) | ||
|
||
|
||
@node_gui(MyNode) | ||
class MyNodeGui(NodeGUI): | ||
inspector_widget_class = MyNodeInspector | ||
wrap_inspector_in_default = True |
14 changes: 14 additions & 0 deletions
14
ryven-editor/ryven/example_nodes/inspector_example/nodes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from ryven.node_env import * | ||
|
||
|
||
class MyNode(Node): | ||
title = 'My Node' | ||
|
||
|
||
export_nodes( | ||
[MyNode], | ||
) | ||
|
||
@on_gui_load | ||
def on_load(): | ||
from . import gui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
172 changes: 0 additions & 172 deletions
172
ryvencore-qt/ryvencore_qt/src/flows/nodes/InspectorGUI.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.