updates
This commit is contained in:
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
22
GUI/GUI.py
22
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()
|
||||||
Reference in New Issue
Block a user