DEV Community

Cover image for Capstone Project
Pope☦
Pope☦

Posted on

Capstone Project

This project has been developed to showcase the skills that I have gathered through the four weeks of bootcamp.

The main focus is to be able to create an authentication system wherein a user can log in to see the next page of the site. The credentials when a user creates a new account gets stored in a database.

First we will need to create our directory which will store our code. And then later on we would start importing the modules that are needed to make sure our application is built successfully.

Import The Tkinter Function

What does import tkinter do in Python?
Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit

Importing the mysql connector

What is MySQL connector in Python?

MySQL Connector/Python enables Python programs to access MySQL databases, using an API that is compliant with the Python Database API Specification v2. 0 (PEP 249). It is written in pure Python and does not have any dependencies except for the Python Standard Library.

Connecting to the Database

In the code below, which is for the connection to the mysql database.

Lastly is the main window

So first of all you have to design the main display. This display screen have two buttons Login and exit. So let’s see the way to put into effect this.(Python Language with Source Code for Login Page with MySql Database)

You can also minimize or maximize the design of main screen window as in line with your choice and make it extra attractive.
When the above code is executed, let’s see the output of this code.(Python Language with Source Code for Login Page with MySql Database)

In this Login Page in Python with MySql Database with Source Code, I use the mysql.Connector library to set up a connection.

Top comments (0)