adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
531 stars 128 forks source link

minigui: clear children #290

Open WebFreak001 opened 3 years ago

WebFreak001 commented 3 years ago

Sometimes it's useful to remove all widgets from a widget (such as a dynamic list of a vertical layout recomputing all results)

A function for this on widget would be useful (and could be made more efficient) instead of manually iterating over children and calling removeWidget.

adamdruppe commented 3 years ago

a new removeAllChildren function does this, it is less than perfect though.

what might work better is to substitute a container thing in there but we'll see with a lil more practice