diff options
author | sara <sara.halter@gmx.ch> | 2021-11-06 14:11:10 +0100 |
---|---|---|
committer | sara <sara.halter@gmx.ch> | 2021-11-06 14:11:10 +0100 |
commit | 84bd7ae6a6cad4d1788b16b5bb9200739dce9385 (patch) | |
tree | bfc80c3333d32f39fdabd8415df6a005dce4cf98 /src/sketch.py | |
parent | scr tests (diff) | |
parent | Merge branch 'master' of github.com:NaoPross/Fading (diff) | |
download | Fading-84bd7ae6a6cad4d1788b16b5bb9200739dce9385.tar.gz Fading-84bd7ae6a6cad4d1788b16b5bb9200739dce9385.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/sketch.py')
-rwxr-xr-x[-rw-r--r--] | src/sketch.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sketch.py b/src/sketch.py index 1dc3424..02bd012 100644..100755 --- a/src/sketch.py +++ b/src/sketch.py @@ -1,12 +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 @@ -19,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)): @@ -55,8 +68,13 @@ 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")) +<<<<<<< HEAD with window(label="Example Window"): add_text("Hello world") +======= +#================================================ +# Start window and main loop +>>>>>>> origin/master show_viewport() start_dearpygui() |