Skip to content

Commit 9947592

Browse files
authored
Update dearpygui_animate_demo.py
1 parent 36aa14c commit 9947592

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DearPyGui_Animate/dearpygui_animate_demo.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,14 @@ def gotoDemo(sender, data):
7070
#-----------------------------------------------------------------------------
7171

7272
def demo_position(sender, data):
73+
74+
# default values
75+
delete_item("pos_info")
76+
add_text("pos_info", default_value="Animations can be stagged,\nindividual values will add up", parent="Position Demo", before="spacing")
7377
set_window_pos("Position Demo", 1500, -100)
78+
animate.add("opacity", "Position Demo", 0, 1, [.51,.05,.5,.9], 1)
7479
show_item("Position Demo")
80+
7581

7682
# animations overlapping in time adding up their values
7783
animate.add("position", "Position Demo", [1280, -100], [200,-100], [.51,.05,.5,.9], 600)
@@ -308,7 +314,7 @@ def loop_close(sender, data):
308314

309315

310316

311-
# Startup Animation
317+
# Start Animation
312318
animate.add("position", "Demo", [622,800], [622, 304], [0,.06,.2,.99], 60)
313319
animate.add("opacity", "Demo", 0, 1, [.57,.06,.61,.86], 60)
314320
animate.add("size", "Demo", [36,32], [156,32], [0,.99,.47,1], 30, timeoffset=1.5, callback=show_buttons)

0 commit comments

Comments
 (0)