Skip to main content

Sagebox Procedural GUI for Python

Project description

Pybox - Easy-to-Use, Procedural GUI Designed for Rapid, Creative Development (and Fun)

Write plain linear, procedural code with no boilerplate.

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.

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

Pybox 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. Pybox 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 pybox-gui

importing pybox

import pybox

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 pybox

win = pybox.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
pybox.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 — Pybox 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pybox_gui-0.1.1-cp312-cp312-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.12Windows x86-64

pybox_gui-0.1.1-cp311-cp311-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.11Windows x86-64

pybox_gui-0.1.1-cp310-cp310-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.10Windows x86-64

pybox_gui-0.1.1-cp39-cp39-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.9Windows x86-64

pybox_gui-0.1.1-cp37-cp37m-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.7mWindows x86-64

File details

Details for the file pybox_gui-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pybox_gui-0.1.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 3.0 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 pybox_gui-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a370e09c7a943fc2f3a67ca819747ece5d6e99d94632006783d0a5b93084a861
MD5 bf03194e805d2da3ec132cfd4a47e0c8
BLAKE2b-256 7358d6ec0e417691fbe72857f18a49e9cce396d02c3ea19e1a15ef494bfe11de

See more details on using hashes here.

File details

Details for the file pybox_gui-0.1.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pybox_gui-0.1.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 3.0 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 pybox_gui-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 346986d2f12bda75bb2e807eafb19188b9856a476e12158eef20089ee280289e
MD5 56c60f0c52111736b699dea6a5267ffe
BLAKE2b-256 995b5166e81a00fa81d65446cb34b8f2f98f81e31fbccbb524d7f06d7eec25fd

See more details on using hashes here.

File details

Details for the file pybox_gui-0.1.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pybox_gui-0.1.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 3.0 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 pybox_gui-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 be6b696a3dbf6cce61ea61932c3df64f821d85347a6217e592c26789c20c063a
MD5 863e3834ae2dfcc52c51dba7775f88b8
BLAKE2b-256 54f8386d733c1fac487fd178b8832eec2120ed88615d44b905cc7d90cd8256eb

See more details on using hashes here.

File details

Details for the file pybox_gui-0.1.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pybox_gui-0.1.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 3.0 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 pybox_gui-0.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9f28b733a4d6c9334385ef99678e91111139f12ddd1bb6a807ebeee7476eeba9
MD5 56f197abaeb66a4ffdccde856d735d44
BLAKE2b-256 44ff30f4cc2ca6f50de6260cf27be9d5182a76f56ab8404bf4e3953fbe5c55fd

See more details on using hashes here.

File details

Details for the file pybox_gui-0.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pybox_gui-0.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 3.0 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 pybox_gui-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 42fc536dd9d4bca5fb5e2ccd7c07d61b7d642ae8ac79f4083c2fec0fee84034a
MD5 02334e4755dd86f93fbd0d463c2a6f9d
BLAKE2b-256 003f6d6a0610b1b4c89973385769929a8d8788142b0c0112e25f199cd63a329a

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