reactive-banana-gi-gtk icon indicating copy to clipboard operation
reactive-banana-gi-gtk copied to clipboard

Dynamically Created Widgets

Open trilogysci opened this issue 5 years ago • 1 comments

Can you provide an example on how to dynamically add (and remove) widgets based on a widget event with their own events? I've looked into using a toggle button event to a function which would toggle between create and destroy of a widget toggleFun :: (MomentIO (Maybe Button) -> MomentIO (Maybe Button)) with accumE (return Nothing) (toggleFun <$ toggleActivateE) with execute but got unexpected results. How would I remove the event signals when destroying the widget?

trilogysci avatar Dec 28 '19 14:12 trilogysci

Not sure, but I haven't really tried it either. The library is very experimental so it'll might take a little creativity to get something working. If I have time I may take a look but in the meantime you're welcome to poke around the source, it's not very large.

mr avatar Dec 28 '19 19:12 mr