Table of Contents
I learned how to use Toga to make a simple desktop, and while creating the app, I felt there was not a lot of documentation on Toga available online. I wanted to create a simple project that shows how to use Toga and some of its common quirks. You should read the full blog post for more information on the code itself.
Hangman App:
- Play with a random word or enter your own word
- Provides details on how to implement app with multiple pages
- Uses multiple widgets including images and text input
This application is primarily used as a tutorial first and application second, but I will provide information on how to deploy the app in case you want to play Hangman!
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
For the very basics, the Toga/Beeware tutorial is very good at getting the environment set up. I would recommend following this tutorial for more information, but I will provide the commands below.
- Set up your virtual environment. (This is activated once you see venv before your code)
py -m venv venv venv\Scripts\activate.bat
- Install Toga & Briefcase
python -m pip install briefcase
You can run the app either in development mode or as an actual app.
- Development Mode
venv\Scripts\activate
cd togablogpost
briefcase dev
- Follow this tutorial after cloning the repo in order to package and distribute the app.
*Start by either clicking "Play Hangman" or "Start Game with Own Word" *Enter your own secret word for hangman, if that option was selected *Guess random letters by entering them into the keyboard. The lives and used letters list will update accordingly.
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
Distributed under the MIT License. See LICENSE.txt
for more information.