gewel.draw.all_wait_for

gewel.draw.all_wait_for(waiters: Iterable[gewel.draw.Drawable], waited_on: gewel.draw.Drawable) None[source]

Have a group of Drawable objects wait on a single Drawable. This is mostly just used as a syntactic shortcut for cases where we want to synchronize a collection of Drawable objects so that they don’t take their next action until some single Drawable has completed it’s current action. The call

all_wait_for([d1, d2, d3], d0)

is equivalent to

for d in [d1, d2, d3]:
    d.wait_for(d0)
Parameters
  • waiters – The Drawable objects that should wait.

  • waited_on – The Drawable to wait on.