Skip to main content

PaiEngine - UI engine

Project description

how to install

type "pip install PaiEngine" into the cmd or type "-m pip install PaiEngine"

how to use

  1. create new python script

  2. type import PaiEngine in line 1

  3. 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)

  4. PaiEngine.CreateFrame(app_name, width, height, (Position X, Position Y)) 4.1 You can use it like 3.

  5. PaiEngine.CreateButton(app name, button name, text, callback or None, font size, (Text color R, Text color G, Text color B), (Background color R, Background color G, Background color B), Text Transparency 0 - 255, Background Transparency 0 - 255) 5.1 PaiEngine.SetButtonPosition(app name, button name, x, y) 5.2 PaiEngine.SetButtonSize(app name, button name, width, height)

  6. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paiengine-0.0.5.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paiengine-0.0.5-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file paiengine-0.0.5.tar.gz.

File metadata

  • Download URL: paiengine-0.0.5.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

Hashes for paiengine-0.0.5.tar.gz
Algorithm Hash digest
SHA256 cd6bd6a5076989b72aa22246551e2ddfd74f3ce93414306fe283e2d7080a1638
MD5 6638ffc21ef3f0dfa44334f0f79e23db
BLAKE2b-256 102c271d81445a3a9f104c4ba63e29f9a8242b29d075244d65992a0c03ac967d

See more details on using hashes here.

File details

Details for the file paiengine-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: paiengine-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for paiengine-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f115ad860279fb4cdad50eaa262492f21e3593a0928dd7fd0f6b1d2275d348d5
MD5 c422e613b762802284351df777d0df68
BLAKE2b-256 ce79151bbd102384d18a7e222db758af604a290a35e0aefc47f965dc2872c5b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page