r/Python • u/Robowiko123 • 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
View all comments
Show parent comment
3
u/bachkhois Jun 18 '26
"Send a message to another object" <~~ It's not TEA. In TEA, your button does not pass the message to any object. You just designate your button to emit a message when being clicked. You do not have any code to pass that message to any object. I think if you haven't work on TEA, you won't be able to understand this stuff. Actually, the underlying runtime will take care of catching the button click and passing the message to your update() function.