Skip to content

nabiddle/python-tkinter-demos

Repository files navigation

Python GUI Applications — Tkinter

Overview

A collection of Python desktop applications built with Tkinter, demonstrating progressive GUI development from simple windows through to fully functional applications with file I/O and menus.

Applications

1. Hello World GUI (intro.py)

A minimal Tkinter window demonstrating the basics of GUI creation, labels and button event handling.

Run it:

python intro.py

2. Interactive Button App (app.py)

Demonstrates dynamic UI updates — clicking a button changes both the label text and window background colour.

Run it:

python app.py

3. Greeting App with Input Validation (input.py)

A user input form with validation — handles empty input gracefully and provides colour-coded feedback to the user.

Run it:

python input.py

4. Calculator (calc.py)

A fully functional calculator application featuring:

  • Grid-based responsive layout
  • Dynamic button creation from a data structure
  • Expression evaluation with error handling

Run it:

python calc.py

5. Text Editor (box.py)

A functional text editor demonstrating advanced Tkinter features:

  • File open and save dialogs
  • Menu bar with File menu
  • Resizable layout using grid weight configuration
  • Checkbox input and messagebox dialogs
  • Window close confirmation dialog

Run it:

python box.py

6. School Enrolment System (class_complete.py)

An OOP-based school management system demonstrating:

  • Class inheritance (Student and Parent both inherit from Person)
  • Bidirectional relationships between classes
  • Type hints on method parameters
  • Real-world domain modelling

Run it:

python class_complete.py

Concepts Demonstrated

  • Tkinter window creation and configuration
  • Event-driven programming with callbacks
  • Grid and pack layout managers
  • File I/O with open/save dialogs
  • Menu bars and messageboxes
  • Input validation and user feedback
  • OOP inheritance and class relationships
  • Dynamic widget creation from data structures

Tools Used

  • Python 3.13
  • Tkinter (Python standard library)
  • No external dependencies required

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages