4 ms·
Does it support reactive data binding? Like: https://github.com/Bomberus/LayoutX https://github.com/Bomberus/LayoutX
by Bomberus 6y ago
Does it support reactive data binding?
Like: https://github.com/Bomberus/LayoutX https://github.com/Bomberus/LayoutX
- alfiopuglisi 6y agoNo, you have to manually update widgets assigning them their new value (strings, and for labels also lists and dicts). I will think about such a feature but I have no experience with such dynamic frameworks :)
- Bomberus 6y agoShouldn't be too hard. For example you could use: https://github.com/ReactiveX/RxPY https://github.com/ReactiveX/RxPY. Then your central state is assigned to a Subject and all widgets have an reference to an observer. As soon as the central state value changes, the callback in the observer is triggered and you can fire the update method for the widget using the central state value.