diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/GUI/GUI.py b/GUI/GUI.py index e69de29..242d4b0 100644 --- a/GUI/GUI.py +++ b/GUI/GUI.py @@ -0,0 +1,22 @@ +import dearpygui.dearpygui as dpg + +dpg.create_context() + +with dpg.window(label="Example Window"): + dpg.add_text("Hello, world") + dpg.add_button(label="Save") + dpg.add_input_text(label="string", default_value="Quick brown fox") + dpg.add_slider_float(label="float", default_value=0.273, max_value=1) + +dpg.create_viewport(title='Custom Title', width=600, height=200) +dpg.setup_dearpygui() +dpg.show_viewport() + +# below replaces, start_dearpygui() +while dpg.is_dearpygui_running(): + # insert here any code you would like to run in the render loop + # you can manually stop by using stop_dearpygui() + print("this will run every frame") + dpg.render_dearpygui_frame() + +dpg.destroy_context() \ No newline at end of file