raylib: add style guide (#35764)

* add style guide

* more
pull/35765/head
Shane Smiskol 5 days ago committed by GitHub
parent fbbad834f3
commit 8ead5db670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      system/ui/README.md

@ -8,3 +8,8 @@ Quick start:
* set `SCALE=1.5` to scale the entire UI by 1.5x
* https://www.raylib.com/cheatsheet/cheatsheet.html
* https://electronstudio.github.io/raylib-python-cffi/README.html#quickstart
Style guide:
* All graphical elements should subclass [`Widget`](/system/ui/widgets/__init__.py).
* Prefer a stateful widget over a function for easy migration from QT
* All internal class variables and functions should be prefixed with `_`

Loading…
Cancel
Save