Replies: 3 comments 2 replies
-
I thought about that, like describing UI in YAML. But is it really going to be less verbose than a plain Python. With any DSL you loose syntax checking, completion, some math in prop values, etc. no? |
Beta Was this translation helpful? Give feedback.
-
IMHO, if a sane UI DSL is desirable, it first need a good native implementation, (in Python, without YAML, XML, JSON, etc). I have some experience with a Web framework (Plone/Zope) that defines lots of things in Python, XML, templates, CSS, etc, and it can be quite difficult to manage large projects with all the different modules. Python can be used to maintain compact definitions, so I tend to resist the temptation of using available DSLs (unless required); extra levels of abstractions are often more difficult to understand and maintain in the long term, and require more code. Of course it depends on what's being abstracted, but for a young and ambitious project like flet I believe that Python is more than enough. |
Beta Was this translation helpful? Give feedback.
-
I will reformulate my previous comment: a working WYSIWYG UI editor could be something good only if it's not required, and if it can be added after (or in parallel), always as an option. I understand the "user" paradigm, and it can be prioritized in certain contexts, but WYSIWYG does not mean "modern", and it certainly mean "more complex". Also, think about the difference between a parametric and a modeling CAD; playdoh is fun, but it doesn't last. Maybe I'm too old to trust WYSIWYG, previously traumatized by horrible and pretentious software like DreamWeaver. And I see there's more! https://en.wikipedia.org/wiki/List_of_HTML_editors#WYSIWYG_editors |
Beta Was this translation helpful? Give feedback.
-
Similar to QT's *.UI file, build the UI of the application from Yaml
There is only logic code inside Python.
Of course it's better to provide command line tools that generate python UI config via yaml.
In addition, it is recommended to use nuitke packaging.
Beta Was this translation helpful? Give feedback.
All reactions