Skip to main content

A Python native, OS native GUI toolkit.

Project description

A Python native, OS native GUI toolkit.

Quickstart

To get a demonstration of the capabilities of Toga, run the following:

$ pip install toga-demo
$ toga-demo

This will pop up a GUI window with some sample widgets.

Prerequisites

Toga has some minimum requirements:

  • If you’re on OS X, you need to be on 10.7 (Lion) or newer.

  • If you’re on Linux, you need to have GTK+ 3.4 or later. This is the version that ships with Ubuntu 12.04. If you want to use the WebView widget, you’ll also need to have WebKit, plus the GI bindings to WebKit (gir1.2-webkit-3.0) installed.

If these requirements aren’t met, Toga either won’t work at all, or won’t have full functionality.

Problems with source installs

Internally, Toga is comprised of a number of subpackages - one for each platform it supports. If you install using wheels, the install process will correctly identify the required packages and install them. However, if you install from source using pip, there is a known bug in pip that causes dependencies to not be installed. It may be necessary to manually install the following pre-requisites:

  • OS X: pip install toga-cocoa

  • Linux: pip install toga-gtk toga-cassowary cassowary

  • Win32: pip install toga-win32 toga-cassowary cassowary

Problems using virtualenv under Linux

When running under Linux, Toga uses the system native python GTK+3 bindings for display purposes. However, if you’re using a --no-site-packages virtualenv, the Python bindings for GTK won’t be in your PYTHONPATH.

Unfortunately, you can’t pip install GTK+ bindings, so you have to use a workaround. To make the system GTK+ bindings available to your virtualenv, symlinking the gi module from the system dist-packages directory into your virtualenv’s site-packages:

$ cd $VIRTUAL_ENV/lib/python2.7/site-packages
$ ln -si /usr/lib/python2.7/dist-packages/gi

Documentation

Documentation for Toga can be found on Read The Docs.

Community

Toga is part of the BeeWare suite. You can talk to the community through:

Contributing

If you experience problems with Toga, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toga-0.1.2.tar.gz (410.6 kB view details)

Uploaded Source

Built Distribution

toga-0.1.2-py2.py3-none-any.whl (390.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: toga-0.1.2.tar.gz
  • Upload date:
  • Size: 410.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for toga-0.1.2.tar.gz
Algorithm Hash digest
SHA256 82cf2bc1b31f3be4c742d0d412efb52201319daf5edba248d58eb9c430a56ef9
MD5 241394b844c66eb09ede7909f22c3d88
BLAKE2b-256 12325564d7b84f9fd046a320dd344e596339d8c9e2d7ae0401dcd76db5ee5db2

See more details on using hashes here.

File details

Details for the file toga-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for toga-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5a65ed4aa994ca474649b25dc2a48e36dca1d0c557d06d7444c08cf198a58400
MD5 9d7e2b7967934a2a3c1790b7ee98f8a2
BLAKE2b-256 52e801e690cdf3f8bef1ea2a05870e1a90cece2f72e94b2fbd3f77984f9008a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page