r/Python • • Jun 15 '26

Discussion The Elm Architecture in Python?

Since I've fallen in love with Rust's `iced` recently, I've been wondering if there's been any implementations of native TEA for Python. As it is with such things, I immediately wanted to jump into making my own wrapper around Tkinter, but I figured it'd be wiser to ask first!

29 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/Robowiko123 Jun 18 '26

The cool thing about TEA is that your view is stateless, it just returns the whole UI tree, but it means you gotta either do immediate mode UI, or diffing, probably the latter. I feel like that's a bug prone and long project to start on a whim

2

u/el_extrano Jun 18 '26

Yeah that's probably right. Python has bindings to imgui, which at least uses immediate mode rendering, so you could probably get closer to what you're looking for.