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

后端 未结 15 1802
日久生厌
日久生厌 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:33

    The closest you can get to rubyish blocks is the with statement from pep343:

    http://www.python.org/dev/peps/pep-0343/

提交回复
热议问题