Skip to content

Commit 6a98279

Browse files
committed
Upload via GitFastFile: add files, LICENSE, ATTRIBUTION.md
0 parents  commit 6a98279

11 files changed

Lines changed: 1575 additions & 0 deletions

File tree

ATTRIBUTION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Icons are from Flaticon. We respect all licenses.
2+
All other content, code, and assets are made by Luka.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Luka
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Learn/GUI.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
GUI_WINDOW_CREATE "Test Window" 600 400
2+
GUI_LABEL_ADD "Test Window" "Welcome to RedScript Real-Time GUI!"
3+
GUI_BUTTON_ADD "Test Window" "Click Me" "BUTTON_CLICKED"
4+
GUI_SHOW "Test Window"
5+
6+
PRINT "Its working!"

Learn/Learn1.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
LET a = 5
2+
LET b = 100
3+
ADD a b
4+
PRINT "Result of a + b is:" a

Learn/Learn2.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Simple arithmetic test
2+
LET x = 10
3+
LET y = 5
4+
ADD x y
5+
SUB x 3
6+
MUL y 2
7+
DIV y 3
8+
9+
# Print results
10+
PRINT "x =" x
11+
PRINT "y =" y
12+
13+
# IF block
14+
IF x > 10 THEN
15+
PRINT "x is greater than 10"
16+
ENDIF
17+
18+
# LOOP block
19+
LOOP 3
20+
PRINT "Loop iteration"
21+
ENDLOOP

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# RedScript Real-Time GUI
2+
3+
## Overview
4+
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.
5+
6+
## ScreenShots
7+
![ScreenShot](ScreenShot1.png)
8+
![ScreenShot-Making-GUI](ScreenShot2.png)
9+
10+
---
11+
12+
## Icon
13+
![Icon](RedScript.ico)
14+
15+
## Features
16+
- Create and manage multiple windows in real-time.
17+
- Add labels, buttons, and other widgets dynamically.
18+
- Buttons support callback commands safely.
19+
- Non-blocking, queue-based GUI system.
20+
- Customizable styles using QSS for a modern dark theme.
21+
- Easy to extend with new commands and widgets.
22+
23+
## Quick Start
24+
Here’s a simple example to create a window with a label and a button:
25+
26+
GUI_WINDOW_CREATE "Test Window" 600 400
27+
GUI_LABEL_ADD "Test Window" "Welcome to RedScript Real-Time GUI!"
28+
GUI_BUTTON_ADD "Test Window" "Click Me" "BUTTON_CLICKED"
29+
GUI_SHOW "Test Window"
30+
31+
markdown
32+
33+
Just call these commands through your `CommandRegistry` instance, and the GUI will appear instantly.
34+
35+
## Installation
36+
1. Ensure Python 3.10+ is installed.
37+
3. Download repo or clone.
38+
2. Install PyQt6:
39+
40+
```bash
41+
pip install PyQt6
42+
43+
Styling
44+
Use the apply_qss method to apply a clean dark theme with smooth gradients, modern fonts, and consistent widget styling.
45+
46+
Extending
47+
You can easily add new GUI commands, custom callbacks, or additional widgets by registering commands in your CommandRegistry.
48+
49+
License
50+
MIT License

RedScript.exe

33.4 MB
Binary file not shown.

RedScript.ico

26.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)