diff options
-rw-r--r-- | src/demo.py | 12 | ||||
-rwxr-xr-x[-rw-r--r--] | src/sketch.py | 13 |
2 files changed, 13 insertions, 12 deletions
diff --git a/src/demo.py b/src/demo.py deleted file mode 100644 index 01e2d96..0000000 --- a/src/demo.py +++ /dev/null @@ -1,12 +0,0 @@ -from dearpygui import dearpygui as dpg -from dearpygui.demo import show_demo - -dpg.create_context() -dpg.create_viewport() -dpg.setup_dearpygui() - -show_demo() - -dpg.show_viewport() -dpg.start_dearpygui() -dpg.destroy_context() diff --git a/src/sketch.py b/src/sketch.py index 3dc29e8..9d65a87 100644..100755 --- a/src/sketch.py +++ b/src/sketch.py @@ -1,14 +1,22 @@ +#!/usr/bin/env python3 + from dearpygui.dearpygui import * from dearpygui.demo import show_demo import qpks +# Create GL context and initialize DearPyGUI create_context() create_viewport() setup_dearpygui() +# Show demo for dev show_demo() + +#================================================ +# GUI Callback functions + def _on_params_close(): pass @@ -21,6 +29,9 @@ def _on_rx_node_delink(sender, app_data): link_id = app_data delete_item(link_id) +#================================================ +# Flow Graph Window + with window(label="RX DSP Flow Graph", width=800, height=800, on_close=_on_params_close, pos=(100,100), tag="rx_win"): with node_editor(callback=_on_rx_node_link, delink_callback=_on_rx_node_delink): with node(label="USRP Source", pos=(20,100)): @@ -57,6 +68,8 @@ with window(label="RX DSP Flow Graph", width=800, height=800, on_close=_on_param add_node_link(get_alias_id("eq_out"), get_alias_id("pll_in")) +#================================================ +# Start window and main loop show_viewport() start_dearpygui() |