Skip to main content

PaiEngine - simple GUI engine

Project description

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.

                                                                               Text color                BackgroundColor         TextTransparency      BackgroundTransparency
                                                                                 ↓                            ↓                           ↓                      ↓
    
  5. 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)

  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.3.tar.gz (1.3 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.3-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: paiengine-0.0.3.tar.gz
  • Upload date:
  • Size: 1.3 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.3.tar.gz
Algorithm Hash digest
SHA256 0d7fe9e762ff25b287d8fcef0f4fd4f63a41cd58ac3a60243bf72c9966c93685
MD5 afec87e60c506eae59e1e7b69edefe70
BLAKE2b-256 e03c0c0ec81135e526f09aeaaf69a00bc74c7a4152bdc776717136dfba29754d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paiengine-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c890f94f42de15e4530a64878c14cf92498c570aba6db8d8e332c5a8a3bb6c
MD5 9f77303581d63461528adcefbd372009
BLAKE2b-256 61b0411d91effbb5e0f96f7ea832bc622a10197062be9638102c0200637ea55e

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