Show HN: My TUI library, PyTermGUI now features an intelligent layout system
github.com15 pointsby bczsalba2 comments
[color(141)]This is lavender
While PTG lets you just use [141]This is lavender
...or with RGB: [rgb(111, 222, 333)]I have no idea what this color is
vs: [111;222;333]I have no idea what this color is
I suppose the biggest difference is that Textual is async-based and PTG is synchronous. Both can be run from the other paradigm, but converting async-sync or vice-versa in a decent sized project is pretty difficult. ptg.KeyboardButton("Help")
or ptg.KeyboardButton("Action", binding=ptg.keys.CTRL_B)
These would create a button with a label such as "[H]elp" and "[B] Action", and pressing `CTRL_` + their button would activate them. If idea is fine implementation should really not take much time.