You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The drag_callback and drop_callback functions in the node editor are not producing the expected console output when nodes are manipulated. Despite setting up straightforward callback functions to log messages, no feedback appears in the console when nodes are dragged or dropped.
To Reproduce
Steps to reproduce the behavior:
Initialize Dear PyGui with the provided code snippet.
In a window, set up a node editor and add a node with both drag_callback and drop_callback functions.
Launch the application and interact with the node by dragging and dropping it within the editor.
Observe the lack of expected console messages detailing the actions, indicating that the callbacks are not being triggered.
Expected Behavior
Upon dragging or dropping a node within the node editor, the console should display messages such as 'Node [node ID] dragged' and 'Node [node ID] dropped'. This feedback is essential for verifying that the node interactions are being handled correctly.
Screenshots/Video
For a visual representation of the issue, refer to the linked video:
Standalone, Minimal, Complete and Verifiable Example
importdearpygui.dearpyguiasdpgdpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
withdpg.window(label="Node Editor Example"):
withdpg.node_editor():
node=dpg.add_node(label="Sample Node", drag_callback=lambdas, a, u: print(f"Node {s} dragged"), drop_callback=lambdas, a, u: print(f"Node {s} dropped"))
print("TESTING!!") # This print statement should appear immediately on running.dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
This code demonstrates a lack of feedback from the drag_callback and drop_callback during node interactions within the node editor.
The text was updated successfully, but these errors were encountered:
Version of Dear PyGui
Version: 1.11.1
Operating System: macOS Sonoma 14.4.1 (Darwin Kernel Version 23.4.0)
My Issue/Question
The
drag_callback
anddrop_callback
functions in the node editor are not producing the expected console output when nodes are manipulated. Despite setting up straightforward callback functions to log messages, no feedback appears in the console when nodes are dragged or dropped.To Reproduce
Steps to reproduce the behavior:
drag_callback
anddrop_callback
functions.Expected Behavior
Upon dragging or dropping a node within the node editor, the console should display messages such as 'Node [node ID] dragged' and 'Node [node ID] dropped'. This feedback is essential for verifying that the node interactions are being handled correctly.
Screenshots/Video
For a visual representation of the issue, refer to the linked video:
Standalone, Minimal, Complete and Verifiable Example
This code demonstrates a lack of feedback from the
drag_callback
anddrop_callback
during node interactions within the node editor.The text was updated successfully, but these errors were encountered: