How would you design a very “Pythonic” UI framework?

后端 未结 15 2041
日久生厌
日久生厌 2021-02-02 01:29

I have been playing with the Ruby library \"shoes\". Basically you can write a GUI application in the following way:

Shoes.app do
  t = para \"Not clicked!\"
  b         


        
15条回答
  •  不要未来只要你来
    2021-02-02 01:47

    Declarative is not necessarily more (or less) pythonic than functional IMHO. I think a layered approach would be the best (from buttom up):

    1. A native layer that accepts and returns python data types.
    2. A functional dynamic layer.
    3. One or more declarative/object-oriented layers.

    Similar to Elixir + SQLAlchemy.

提交回复
热议问题