Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hope to update the tutorial][Node Editor] #2428

Open
monkeycc opened this issue Nov 21, 2024 · 1 comment
Open

[Hope to update the tutorial][Node Editor] #2428

monkeycc opened this issue Nov 21, 2024 · 1 comment
Labels
state: pending not addressed yet

Comments

@monkeycc
Copy link

微信截图_20241121105438

https://dearpygui.readthedocs.io/en/latest/documentation/node-editor.html

Hope to update the tutorial

@monkeycc monkeycc added the state: pending not addressed yet label Nov 21, 2024
@nvglucifer
Copy link

This image is ComfyUI, not DPG's,

I think the DPG docs is enough that it let you know those 3 data: link_id, link_id1, link_id2.
Lot of thing docs will not do research for you.

Either link_callback or delink_callback can further get info about the link or link's input/output (which attribute belong to which node).
Using get_item_parent, get_item_children, get_item_type, get_item_alias, get_item_configuration, get_item_info, get_item_rect*, ... like there are 27 get_item in the api docs.

Then you control the data yourself (graph theory, serialize/deserialize file, spawn/kill thread/process, connect/modify database,...).
I think these points will help in controlling the data:

  • Item which is children of node_attribute, or any item inside/outside of the node editor will:
    • use callback, drag_callback, drop_callback.
    • use item handlers.
    • use frame callback.
    • ...
  • mouse click, mouse release, mouse drag, mouse down, mouse move, mouse wheel, plus key modifier like: Ctrl, Shift, Alt.
  • even draw a grouping rectangle (viewport_drawlist - front=True) or dashed line (draw_line or plot's line_series).

I hope you will investigate the site-packages\dearpygui\dearpygui.py file, view this file in vscode you can search these:

  • node - 235 keywords.
  • NodeCol - 32 keywords.
  • NodesCol - 26 keywords.
  • NodeStyle - 26 keywords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet
Projects
None yet
Development

No branches or pull requests

2 participants