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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vui-0.0.3.tar.gz
  • Upload date:
  • Size: 18.4 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.3.tar.gz
Algorithm Hash digest
SHA256 19c44291330b6a8a01642f438f44e7f1b0571f8ad1809785015c566eb5977b52
MD5 1d9900fb07d8bf31b5574b181bbaefd1
BLAKE2b-256 622638bdebe4b559f52cb9b858da1a25335f83403e383a0b5429ebf044c603e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vui-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b6d1e86d1729a5c5c4bea71cbca2a7904333574917ab48f77170496994794fca
MD5 41a2763d2b9e2a83a1bf2c1b54e05c8f
BLAKE2b-256 e60ebfeeee15ff33f3bdb8fe056f6dee38ec700677af722b0800d2e8a985b63c

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