Skip to content

Depot-Analytics/toga-hangman

Repository files navigation

Simple Toga Hangman App


Toga Hangman Project

A simple guide for getting started with creating applications with Toga!

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Hangman Welcome

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!

(back to top)

Built With

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.

(back to top)

Getting Started

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.

Prerequisites

  • 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
    

Running the App

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.

Using the App

Hangman Play

*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.

Usage

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

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages