Skip to main content

A python library for creating simple GUI with pygame.

Project description

Functions BLSSLIB.DecodeBlockItem(raw:str) -> dict - raw : is the raw string of a block item that is not in a save of any kind or is in relation to another block (ie it is not wired)

OUTPUT:
a python dict that contains the basic data of the block
id : its name in the game like block or EEPROM
position : the x y and z of the block if it is a multiblock then its made location ie form were it was placed from will be shown 
colour : the rgb colour (can some times not exist for components but this is for block only)
rotation : a chr showing the 1 ofr 24 rotation values

BLSSLIB.DecodeBlockSave(save : str) -> list[dict[str:str]] basicly splits by the ; and does the DecodeBlockItem on each block

BLSSLIB.EncodeBlockItem(block:dict) -> str does the opposit of the BLSSLIB.DecodeBlockItem()

BLSSLIB.EncodeBlockSave(blocks:list[dict[str:str]]) -> str taskes each dict of block data convets to save steign and adds a ; to it and repeat

BLSSLIB.addEeprom8(data:list[int|str], world: list[dict[str:str]], position: tuple[int, int, int], rotation: str) -> dict so takes in data that is converted into a eeprom at 0 0 0 with a function then it extracts the data part of the eeprom save and puts it in a new empty eeprom at position and rotation it also raises a error if the positon .. +1 to z .. ... .. +8 to z is any of those positon are alredy in the world (defined later)

world is a list of the dict of your decoded save you are likely to have this as when you decode a save you get a list of dict that you edit and use to sore the save to be further Encoded

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

gui_pygamelib-0.0.12.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

GUI_pygameLIB-0.0.12-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file gui_pygamelib-0.0.12.tar.gz.

File metadata

  • Download URL: gui_pygamelib-0.0.12.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for gui_pygamelib-0.0.12.tar.gz
Algorithm Hash digest
SHA256 f6d67d3bbe9d40b8108c83ead6d25623a5be05ed15e94ae258590210079103d9
MD5 fcab4a02d60e5773e005ed1ba7b5b80d
BLAKE2b-256 a0473f7dd1b4e52c98dd66f54ac67177f9e3d4bbce2e42f55e8dc8efd41f77a6

See more details on using hashes here.

File details

Details for the file GUI_pygameLIB-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: GUI_pygameLIB-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for GUI_pygameLIB-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 9c44013d6990910261f4765cf2b92b3fe9bdc701be23e7bd9644b320ecc0a902
MD5 6b1c5f8a784b2f32f0693c441624685f
BLAKE2b-256 d581fcfdc2da0125b23d6f3b54090d48e1c1a5018d19ff447f110cb20b57205a

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