How to Create Login Application in Python using SQLite Database?
Creating Login application in python programming language requires two major task. One is creating GUI and other is implementing logic.
Let’s talk about creating GUI:
Like in other programming language such as C#, You can create windows form application just by drag and dropping controls over the forms. So you may not need to write code to create GUI in C#. But here is python there is no such mechanism so you have to write code to create a GUI. There are various library through which you can create GUI in python. But we are going to use the builtin module that is tkinter. So let’s create the GUI.
We are going to use the intellij IDEA to create this project so download and install it.
Basic project setup STEPS:
- Install python in your system, download it from here
- Install python plugin in the intellij IDEA from file>setting>plugin and search python and install it.
- create virtual environment from file>project structure>SDKs and click on plus sign which you can see on the top of the middle part of the window and select add python SDK. New window pop up and there you can see the virtual env and click OK.
- create one project from file>new>project and give project name.
- now right click over your project>new>python file give file and and enter.
let’s write the GUI CODE:
STEPS:
if you have any confusion please watch the following video.