This project is a simple login system developed in Python using a graphical interface built with CustomTkinter. The application allows the user to enter a username and password, validate the credentials, and display a success or error message directly on the screen.
The main goal of this project is to practice fundamental concepts of GUI development, event handling, and data validation in Python.
- Modern dark mode interface
- Username input field
- Password input field
- Login button
- Credential validation
- Dynamic feedback message (success or error)
The login is considered valid only when:
- Username:
pedro - Password:
12345678
Any other combination will return an error message.
- Python
- CustomTkinter
The code is organized into three main parts:
Sets the application to dark mode
Retrieves user input, checks login credentials, and updates the interface
Creates the main window, adds components, and displays feedback
pip install customtkinter
python your_file_name.py
Learning Source
This project was built based on the following video:
https://www.youtube.com/watch?v=Px-DgrQ_wjI&list=WL&index=8
Possible Improvements
Hide password characters
Support multiple users
Connect to a database
Add user registration system
Improve UI designPedro Gaudencio