Skip to main content

GUI framework written in pure Python

Project description

vui

vui is a cross-platform GUI framwork, built on top of Pyglet. It is currently in early stage of development. The aim is to build a simple pythonic API that could be used to build UI apps and games.

The framework is built around the hierarchy of UI elements represented by classes inheriting from View. A view class can be attached to a (single) Pane object. Pane is a simple class representing a rectangular area in the window. This class also plays the role of host for mouse events.

Some of the views can contain other views. Such views are called "layouts". A layout class is a View that contains the logic of subdiving its pane into panes for its children.

Various UI classes are glued together with Observable values and attributes. Functions and methods can be registed as listeners to an observable value. These listeners are called whenever the value is changed. Most attributes of UI values are observable, including pane dimentions, mouse position and so on.

In addition to Observable vui makes use of events module forked from Pyglet events. As a rule, whenever an event can be thought about as changes of some value, it should be represented as Observable. But some events like on_draw don't fit this model and are represented as events.

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

vui-0.0.4.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

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

vui-0.0.4-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file vui-0.0.4.tar.gz.

File metadata

  • Download URL: vui-0.0.4.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for vui-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bb1639789b53c11ad8329f47ce427a115286887eb306f7ce687a9e39bbcf57a6
MD5 99d2a94cb656ed4405f5c6189eeddcee
BLAKE2b-256 94118319859c0b7319f20fa62b3dc5e1adf2c7738a8818d7adcf8b91f5f0aadf

See more details on using hashes here.

File details

Details for the file vui-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: vui-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for vui-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b4ffdb0f717b7089512639e2c96a719a8390f41ebc0c54f502f1af8292687d76
MD5 96fbb9a95f7ce1e54a1d6f8efc63e27d
BLAKE2b-256 5eabed1fb26226523dcbf03db65e3b5287d5386bc5cb6b2d3573eb119f98a74d

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