toga/examples
2022-10-20 21:59:36 +01:00
..
.template Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
activityindicator Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
beeliza Correct the app name references. 2022-10-11 06:14:59 +08:00
box Correct the app name references. 2022-10-11 06:14:59 +08:00
button Correct the app name references. 2022-10-11 06:14:59 +08:00
canvas Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
colors Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
command Correct the app name references. 2022-10-11 06:14:59 +08:00
date_and_time Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
detailedlist Correct the app name references. 2022-10-11 06:14:59 +08:00
dialogs Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
divider Correct the app name references. 2022-10-11 06:14:59 +08:00
examples_overview Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
focus Correct the app name references. 2022-10-11 06:14:59 +08:00
font Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
handlers Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
imageview Merge pull request #1475 from freakboy3742/pyscript 2022-10-11 07:53:53 +01:00
layout Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
multilinetextinput Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
numberinput Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
optioncontainer Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
positron-django Clarify blocking behavior 2022-10-13 14:15:55 +01:00
positron-static Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
progressbar Correct the app name references. 2022-10-11 06:14:59 +08:00
scrollcontainer Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
selection Correct the app name references. 2022-10-11 06:14:59 +08:00
slider Correct the app name references. 2022-10-11 06:14:59 +08:00
switch_demo Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
table Correct the app name references. 2022-10-11 06:14:59 +08:00
table_source Correct the app name references. 2022-10-11 06:14:59 +08:00
textinput Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
tree Correct the app name references. 2022-10-11 06:14:59 +08:00
tree_source Correct the app name references. 2022-10-11 06:14:59 +08:00
tutorial0 Update examples to have web configurations. 2022-10-09 14:18:38 +08:00
tutorial1 Update examples to have web configurations. 2022-10-09 14:18:38 +08:00
tutorial2 Update examples to have web configurations. 2022-10-09 14:18:38 +08:00
tutorial3 Update examples to have web configurations. 2022-10-09 14:18:38 +08:00
tutorial4 Update examples to have web configurations. 2022-10-09 14:18:38 +08:00
webview Correct the app name references. 2022-10-11 06:14:59 +08:00
window Add pre-commit hooks: check-toml, check-yaml, check-case-conflict, check-docstring-first, end-of-file-fixer, trailing-whitespace 2022-10-20 21:59:36 +01:00
README.rst Cleaned up examples, and added a tree example. 2017-11-11 11:24:39 +08:00

========
Examples
========

This directory contains example code demonstrating each widget defined by
Toga:

* button
* detailedlist
* table
* tree

It also contains working copies of the tutorial code:

* tutorial0
* tutorial1
* tutorial2
* tutorial3

Running the examples
--------------------

Each of the examples should run by installing toga, and running the
application as a Python module::

    $ pip install toga
    $ cd <example name>
    $ python -m <example name>

substituting `<example name>` for the example you want to run.

For developers: Creating new examples
-------------------------------------

This directory also contains a `Cookiecutter
<https://github.com/audreyr/cookiecutter>`__ template for new examples. To
create a new example, run the following from this directory::

    $ pip install cookiecutter
    $ cookiecutter .template

and answer the questions.