Skip to content

Following an extensive tutorial, I created 10 diverse apps using PySimpleGui. Each app is organized in folders for easy navigation. "app.py" in the root directory is the backbone, enabling effortless launching of our exceptional array of apps.

Notifications You must be signed in to change notification settings

Notwacob/PySimpleGui

Repository files navigation

PySimpleGui Tutorial Code

I have meticulously crafted this code by diligently following the comprehensive PySimpleGUI tutorial presented by Clear Code on YouTube (here).

Throughout this extensive tutorial, I have successfully developed an awe-inspiring collection of 10 diverse apps using PySimpleGui in Python. Each of these remarkable apps is thoughtfully organized within its dedicated folder, ensuring easy navigation and management. As you delve deeper into the project, you will discover a pivotal file named "app.py" residing in the root directory. This crucial file serves as the backbone of our PySimpleGui application, enabling the effortless launch of our exceptional array of apps.

launcher app

Table of Contents

  1. Converter App
  2. Calculator App
  3. Stopwatch App
  4. Text Editor App
  5. Snake Game
  6. Graph App
  7. Image Editor App
  8. Music Player App
  9. Weather App
  10. Face Detector App

Converter App

This application serves as an intuitive converter, seamlessly transforming units for kilometers to miles, kilograms to pounds, and seconds to minutes. With a user-friendly interface, it effortlessly accepts input values and promptly generates accurate conversions. The design prioritizes simplicity, allowing for effortless expansion of the application's conversion capabilities in the future.

Converter App Base Converter App with Output

Calculator App

This application offers a user-friendly calculator interface, designed to effortlessly handle basic mathematical calculations. With just a few clicks, you can perform operations such as addition, subtraction, multiplication, and division.

Upon pressing any number button, the corresponding digit instantly appears in the output field at the top, ensuring swift and accurate input. When an operator button is selected, the output field is automatically cleared, while the previous number remains stored within the program. This convenient feature allows you to seamlessly enter a new number for further calculations. Finally, the application efficiently executes the desired operation and displays the accurate result in the output field.

For an added touch of personalization, you can customize the visual appearance of the calculator by simply right-clicking within the output field. A variety of appealing themes are available for you to choose from, allowing you to tailor the calculator to your preferred style.

Calculator App Base   Calculator App with Output

Stopwatch App

This is a user-friendly stopwatch application that allows you to easily start, stop, and reset the stopwatch. You can record laps to keep track of different time intervals. The simple and intuitive interface makes it accessible and enjoyable to use, whether for timing events, workouts, or any other activities that require precise time measurements.

Stopwatch App Base   Stopwatch App Base with Outputs   Stopwatch App Base After Hitting Stop button

Text Editor App

The Text Editor Application is a highly user-friendly program designed to empower users in creating, editing, and effectively managing their text documents. This comprehensive documentation aims to provide a detailed overview of the application's exceptional features, remarkable functionality, and clear usage instructions.

With the Text Editor Application, users are presented with a seamless and intuitive user interface that enables effortless creation and efficient management of text documents. Boasting a rich set of features including file opening and saving, word counting, and even smiley insertion, users are equipped with all the essential tools to effortlessly edit their text files and elevate the quality of their content. The application's thoughtfully crafted design and cohesive theme contribute to a delightful and immersive user experience, ensuring a pleasant journey throughout the text editing process.

Text Editor App Base   Text Editor App Base with Text Input
Text Editor App Word Counter

Snake Game

This code is a basic Snake game application. When you run it, a window titled "Snake" will appear with a black game field. You control a snake using the arrow keys on your keyboard. The objective is to guide the snake to eat red apples that randomly appear on the field. The snake moves continuously in the direction it's facing. Every 0.5 seconds, the game checks for your input and updates accordingly. If the snake's head touches an apple, it eats it and grows longer. The game ends if the snake hits the field boundaries or if its head collides with its own body. The window closes at that point. The snake's head is yellow, and the rest of its body is green. The apples are red.

Snake Game

Graph App

This application is designed to help users visualize numerical data in a simple and intuitive way. When you open the application, you'll see a window with a table and a graph. To use the application, all you need to do is enter numeric values into an input field and click "Submit." The application will add your data to the table and update the graph instantly. The graph will show a line connecting all the points you've entered. You can keep entering data and see how it affects the table and the graph. It's a great way to understand patterns and trends in your data. When you're done using the application, just close the window. Your data won't be saved. Overall, this application is a simple tool for visualizing numeric data. It's easy to use and provides real-time updates, allowing you to explore and analyze your data effortlessly.

Graph App Base Graph App Base With Inputs

Image Editor App

The app has a user-friendly interface with two main sections. On the left side of the window, you'll see sliders and checkboxes. These sliders control the blur and contrast of the image, allowing you to make it more or less blurry and adjust the brightness. The checkboxes enable special effects like embossing, which creates a 3D effect, and contouring, which enhances object edges.

On the right side of the window, the app displays the image you're editing. As you make changes using the sliders and checkboxes, the image updates in real-time, instantly showing you the effects. If you want to flip the image horizontally or vertically, simply check the corresponding boxes, and the image will flip accordingly, reflecting the changes immediately.

When you're satisfied with the edits, you can click the "Save" button. The app will prompt you to choose a location on your computer to save the edited image as a PNG file. Give it a name, and it will be saved for you. If you're done editing or want to exit the app, simply close the window as you would with any other program.

That's it! This user-friendly image editing app allows you to adjust blur, contrast, apply special effects, flip the image, and save your edits easily. It's a straightforward tool for editing images without any complex steps or confusing options.

Image Editor App Base Image Editor With Inputs

Music Player App

This music player application has a simple interface. When you open the program, a window appears with a play button and a pause button. You can select a song file from your computer, and its name will be displayed. Clicking the play button starts playing the song, and the pause button allows you to pause the playback. There is also a volume slider to adjust the volume level. The window can be closed when you're done using the application.

Music Player App Play Tab   Music Player App Volume Tab

Weather App

The weather application is a user-friendly tool that allows you to check the weather for different locations. When you open the application, you'll see a window with an input field where you can enter the name of a city or town. Once you type in the location and press the "Enter" button, the application fetches the latest weather data for that location from the internet.

The retrieved weather information, including the location name, current time, weather conditions, and temperature, is then displayed in the application window. Additionally, the application uses weather symbols to visually represent the current weather conditions, making it easier to understand at a glance.

You can continue using the application by entering new locations and receiving their respective weather updates. Whenever you're done, simply close the application window to exit the program.

Overall, this weather application provides a straightforward way to stay informed about the weather conditions in different places, with real-time data and a clean user interface.

Weather App Base
Weather App with London's Weather

Face Detector App

This face detector app has a window where you can see yourself through your computer's camera. As the app runs, it automatically recognizes and outlines any faces it detects in the video stream using green rectangles. Below the video, there's a number that shows how many faces are currently visible. For example, if there are three faces in the frame, it will display "3" next to "People in picture." You can move around or invite others to join the frame, and the app will instantly update the rectangles and the face count. When you're done using the app, you simply close the window, and it gracefully stops accessing the camera. Overall, it's a user-friendly app that uses your computer's camera to detect faces in real-time and provides a count of the number of faces it finds. It's a fun and convenient tool for various purposes, like knowing how many people are in the frame or exploring face detection technology.

Face Detector App Base

About

Following an extensive tutorial, I created 10 diverse apps using PySimpleGui. Each app is organized in folders for easy navigation. "app.py" in the root directory is the backbone, enabling effortless launching of our exceptional array of apps.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages