Skip to content

A collection of Tkinter GUI exercises from the VIBOT master's program, demonstrating basic to complex GUI applications in Python. These exercises showcase my hands-on experience with Tkinter, covering everything from user input forms to dynamic graphical simulations and a calculator.

Notifications You must be signed in to change notification settings

GraceSevillano/Tkinter_exercises_VIBOT

Repository files navigation

Tkinter Exercises for VIBOT - Computer Science: Python TD3 and TD2

This repository contains a series of 10 exercises developed during the first semester of the VIBOT master's program in the Computer Science: Python course. Each exercise, designed and implemented by me, is aimed at practicing and enhancing skills in creating graphical user interfaces (GUIs) with Tkinter, a standard GUI library for Python. The exercises range from basic GUI elements to more complex applications, such as a simple calculator, and are of my complete authorship.

Exercise Descriptions from TD2.pdf

Exercise 1: Checkerboard

Develop a Tkinter application that displays a checkerboard. The canvas should be 300x300 pixels, with squares having a side length of 30 pixels. The program includes a specific function to draw a checkerboard pattern and another to draw a line of navy-colored squares.

Exercise 2: Drawing Application

Create a Tkinter application encapsulating a canvas widget within a class. The application should offer a drawing area and buttons for drawing circles, lines, triangles, and a quit button to exit the application.

Exercise 3: Application with Menu Bar

Develop a graphical application with Tkinter that includes a menu bar. The file menu should contain options for Open, Save, and Exit, while the account menu should offer items like card, transfer, and transaction.

Exercise Descriptions from TD3.pdf

Exercise 1: User Information Interface

Create a graphical interface that prompts the user to enter their name, first name, and date of birth. Upon submission, it displays a message with the entered information.

Exercise 2: Current Time Display

Develop a GUI that shows the current time when a button labeled 'current time' is clicked.

Exercise 3: Dynamic Circle Drawer

Construct a window containing a canvas and four buttons. These buttons allow the user to draw circles with random properties, change the color of the paths, and clear the canvas.

Exercise 4: Color Chooser Combo Widget

Build a graphical window with a combo widget that lets users select or input a color. This color then becomes the background color of the master window.

Exercise 5: Olympic Rings

a) Create a program to draw the 10 Olympic rings. Include a "Quit" button to close the window. b) Modify the program to draw each of the 5 Olympic rings with separate buttons.

Exercise 6: Gravitational Force Simulation

Write a program that simulates the gravitational force between two stars represented by circles. Include the functionality to move the stars and display their distance and the gravitational force between them.

Exercise 7: Simple Calculator

Program a simple calculator capable of performing addition, subtraction, multiplication, division, and calculating the square root. Include a clear button to reset calculations.

How to Run the Exercises

Each exercise is contained within its own Python file, named Exercise_1_TD2.py through Exercise_7_TD3.py. To run an exercise, simply execute the corresponding file in your Python environment:

python Exercise_1_TD2.py

Replace Exercise_1_TD2.py with the desired exercise number to run a different exercise.

Requirements

Python 3.x Tkinter library (usually included with Python)

About

A collection of Tkinter GUI exercises from the VIBOT master's program, demonstrating basic to complex GUI applications in Python. These exercises showcase my hands-on experience with Tkinter, covering everything from user input forms to dynamic graphical simulations and a calculator.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages