diff options
author | Nao Pross <np@0hm.ch> | 2021-12-11 14:08:50 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-12-11 14:08:50 +0100 |
commit | 3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e (patch) | |
tree | 812d73bd351621e4ed5cfe363e8609e84e45706c /tests/dearpygui/test6_drag_points_and_lines.py | |
parent | Correctly decode symbols (diff) | |
download | Fading-3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e.tar.gz Fading-3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e.zip |
Delete old stuff
Diffstat (limited to '')
-rw-r--r-- | tests/dearpygui/test6_drag_points_and_lines.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/dearpygui/test6_drag_points_and_lines.py b/tests/dearpygui/test6_drag_points_and_lines.py deleted file mode 100644 index c6d8862..0000000 --- a/tests/dearpygui/test6_drag_points_and_lines.py +++ /dev/null @@ -1,26 +0,0 @@ -import dearpygui.dearpygui as dpg - -dpg.create_context() - -def print_val(sender): - print(dpg.get_value(sender)) - -with dpg.window(label="Tutorial", width=400, height=400): - with dpg.plot(label="Drag Lines/Points", height=-1, width=-1): - dpg.add_plot_legend() - dpg.add_plot_axis(dpg.mvXAxis, label="x") - dpg.set_axis_limits(dpg.last_item(), -5, 5) - dpg.add_plot_axis(dpg.mvYAxis, label="y") - dpg.set_axis_limits(dpg.last_item(), -5, 5) - - # drag lines/points belong to the plot NOT axis - dpg.add_drag_line(label="dline1", color=[255, 0, 0, 255], default_value=2.0, callback=print_val) - dpg.add_drag_line(label="dline2", color=[255, 255, 0, 255], vertical=False, default_value=-2, callback=print_val) - dpg.add_drag_point(label="dpoint1", color=[255, 0, 255, 255], default_value=(1.0, 1.0), callback=print_val) - dpg.add_drag_point(label="dpoint2", color=[255, 0, 255, 255], default_value=(-1.0, 1.0), callback=print_val) - -dpg.create_viewport(title='Custom Title', width=800, height=600) -dpg.setup_dearpygui() -dpg.show_viewport() -dpg.start_dearpygui() -dpg.destroy_context()
\ No newline at end of file |