Skip to main content

Sagebox Procedural GUI for Python

Project description

Sagebox - A High-Performance, Procedural GUI Designed for Rapid, Creative Development (and Fun)

Write plain linear, procedural code with no boilerplate.

Sagebox (aka Pybox) is a GUI architecture and toolset for Python that lets you add windows, GUI controls, and graphical output using simple linear, procedural code, without any boilerplate or the overhead of an event-driven framework.

Sagebox was created to bring back the simplicity of creating fun-with-graphics programs, while providing the power and scalability to build full-scale applications with advanced GUI controls.

Sagebox Github Project — Click to see the Github Page where there are many examples and the future roadmap.

YouTube Examples — These examples are for the Rust version, but most work in Python already. Sagebox Github page

Features

  • Procedural, linear programming style
  • No macros or boilerplate
  • Console-mode support with add-on GUI-Control integration
  • Compatible with other GUI libraries
  • Accepts all Python native types for all functions
  • Designed to stay out of the way of your existing Python code

Installation

You can install the package directly with pip:

pip install sagebox

importing Sagebox

import sagebox

Dependencies

numpy (any version)

Sample "Hello World" Full-Program Example

This program creates a Hello World program using a graphic window. Creating a graphic window is not required to use Sagebox, and is just one of many features.

You can also create controls (e.g. sliders, buttons, checkboxes) with one line of code, either in a console-only program or with more graphics features such as the graphics window created in the example.

import sagebox

win = sagebox.new_window();                      # Create a default graphic window (not required)
win.write("Hello World",font=100,center=True)    # Write "Hello World" in large font, centered in window
sagebox.exit_button()                            # bring up a button in small window to press, letting the
                                                 # user know the program has ended.

See the github page for examples with graphics and easy-to-use controls — Sagebox Github page

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

sagebox-0.1.2.tar.gz (2.8 MB view details)

Uploaded Source

Built Distributions

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

sagebox-0.1.2-cp312-cp312-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.12Windows x86-64

sagebox-0.1.2-cp311-cp311-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.11Windows x86-64

sagebox-0.1.2-cp310-cp310-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.10Windows x86-64

sagebox-0.1.2-cp39-cp39-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9Windows x86-64

sagebox-0.1.2-cp37-cp37m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.7mWindows x86-64

File details

Details for the file sagebox-0.1.2.tar.gz.

File metadata

  • Download URL: sagebox-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for sagebox-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1db359b83c65e8553e3aceee94152dc4363ce392a25ee5bff2fa7a8e0c8a950e
MD5 840456659e45e768aab776742404b8d4
BLAKE2b-256 cd2ee7d4f631ee27ec93bbbbba15245f68cbf8195d06aac32ef5404ce75dd5a8

See more details on using hashes here.

File details

Details for the file sagebox-0.1.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: sagebox-0.1.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for sagebox-0.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a0fbd5a86aefe14869eaa5d1f2676079b8e065f48fdc4f0296a5e705332a0751
MD5 18ef393da46f6d5e81c6f8e4c7c816a5
BLAKE2b-256 f2e7e4462f4cc2310d2fe8f028310f0fd3adc7f48fd67abf6d163aa33a062946

See more details on using hashes here.

File details

Details for the file sagebox-0.1.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: sagebox-0.1.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for sagebox-0.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aa2671e01a78a604b70a539cbc276dc2cbd345169ea187673d08c60ed0e5a7d6
MD5 6ac8db55aa8a2397ed19154ec5efb38a
BLAKE2b-256 9e905f1f35875a569623c1ab889e62c28523a08fb188253975634b983aca723e

See more details on using hashes here.

File details

Details for the file sagebox-0.1.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: sagebox-0.1.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for sagebox-0.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f4ee07649d4544cb190ff5cb5370b7ddcf13b573de866090ff1440bc7fcc0dcd
MD5 f7ad5c881c5052ac6152a1f9aa24f30f
BLAKE2b-256 7874782517e0d833bd6d881d3eb54529b9308d11277bca978af5d355cb280b63

See more details on using hashes here.

File details

Details for the file sagebox-0.1.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: sagebox-0.1.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for sagebox-0.1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8b8d5a6514b85ae2a689b8bb7dacb61f87ec6f2835fd6db0a048a976db2ebc81
MD5 ebe244275cc138bf6d76fb23db3af025
BLAKE2b-256 cfe67d97a23f8bbe3113d4d146044cde3878416844c80f61e2d630d68795a10d

See more details on using hashes here.

File details

Details for the file sagebox-0.1.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: sagebox-0.1.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for sagebox-0.1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b714247c2d0273a8c53734d259c7d9dbef9dcb59b1ba0b635516bf73224d1553
MD5 0b23d0ba90a87ddcdd88c85b9c755a7b
BLAKE2b-256 670d6cc91ad9fe1222eec4d9af6a22c8f0ff2d988025ab96c693363ab558a575

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