From 8ead5db67081a4d75fe2d1c6d123adecceea71fe Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 18 Jul 2025 19:19:26 -0700 Subject: [PATCH] raylib: add style guide (#35764) * add style guide * more --- system/ui/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/ui/README.md b/system/ui/README.md index 85d32bfd6c..b124ae4d85 100644 --- a/system/ui/README.md +++ b/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 `_`