PaiEngine - simple GUI engine
Project description
how to use
-
create new python script
-
type import PaiEngine in line 1
-
type PaiEngine.init(screen or None, app name) 3.1 PaiEngine.SetBackgroundColor(app name, (color R, color G, color B)) 3.2 PaiEngine.SetBackgroundTransparency(app name, Transparency 0 - 255) 3.3 PaiEngine.CreateText(app name, text, x, y, font size or None, color or None) 3.3.1 PaiEngine.SetTextColor(app name, index, (color R, color G, color B)) 3.3.2 PaiEngine.SetTextTransparency(app name, index, Transparency 0 - 255)
-
PaiEngine.CreateFrame(app_name, width, height, (Position X, Position Y)) 4.1 You can use it like 3.
Text color BackgroundColor TextTransparency BackgroundTransparency ↓ ↓ ↓ ↓ -
PaiEngine.CreateButton(app name, button name, text, callback or None, font size, (color R, color G, color B), (color R, color G, color B), Transparency 0 - 255, Transparency 0 - 255) 5.1 PaiEngine.SetButtonPosition(app name, button name, x, y) 5.2 PaiEngine.SetButtonSize(app name, button name, width, height)
-
main loop 6.1 PaiEngine.Draw(app name, screen or None) 6.2 PaiEngine.HandleClick(app name, (Position X, Position Y)) 6.3 PaiEngine.GetFrameRect(app name) ← the function is return the value 6.4 PaiEngine.GetSurface(app name) ← the function is return the display
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paiengine-0.0.4.tar.gz.
File metadata
- Download URL: paiengine-0.0.4.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45879b1d38162366a432f49797c46f2b535146f901c6455053fd3d6bd1723573
|
|
| MD5 |
c154d78deafe1c431f62b738a68f3c92
|
|
| BLAKE2b-256 |
9f6d2cdf542056b8d8f52c9104658c7444cee140170f5355a15fd368fa9abd85
|
File details
Details for the file paiengine-0.0.4-py3-none-any.whl.
File metadata
- Download URL: paiengine-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ccfb6ad0636e36d0ce36bd7e4c8f33913a20563c7dfb662a920b13380ba8bf7
|
|
| MD5 |
015dac44100b06fc1d7c7e29643a611f
|
|
| BLAKE2b-256 |
ce8f3d8c83867cff33c673543bd2df81de553709ea4e9b6de546bd613c958368
|