RedScript Real-Time GUI is a lightweight, command-driven GUI engine built with Python and PyQt6. It allows you to create and manage windows, labels, buttons, and other widgets dynamically using simple textual commands. GUI updates are processed asynchronously, ensuring smooth and responsive interaction without blocking your main application logic.
- Create and manage multiple windows in real-time.
- Add labels, buttons, and other widgets dynamically.
- Buttons support callback commands safely.
- Non-blocking, queue-based GUI system.
- Customizable styles using QSS for a modern dark theme.
- Easy to extend with new commands and widgets.
Here’s a simple example to create a window with a label and a button:
GUI_WINDOW_CREATE "Test Window" 600 400 GUI_LABEL_ADD "Test Window" "Welcome to RedScript Real-Time GUI!" GUI_BUTTON_ADD "Test Window" "Click Me" "BUTTON_CLICKED" GUI_SHOW "Test Window"
markdown
Just call these commands through your CommandRegistry
instance, and the GUI will appear instantly.
- Ensure Python 3.10+ is installed.
- Download repo or clone.
- Install PyQt6:
pip install PyQt6
Styling
Use the apply_qss method to apply a clean dark theme with smooth gradients, modern fonts, and consistent widget styling.
Extending
You can easily add new GUI commands, custom callbacks, or additional widgets by registering commands in your CommandRegistry.
License
MIT License