Python with MySQL: Login Page Linked With Signup Page
HTML-код
- Опубликовано: 21 июл 2024
- Hey everyone, in this video you will learn how to build a GUI of a login page with Tkinter using python.
In this project login and sign-up pages are linked with each other.
I have used the MySQL database to store the user data which the user will enter during sign up and with the help of that data user will be able to log in and change the password.
Source Code:
faizan-er.myinstamojo.com/pro...
Project Images: drive.google.com/drive/folder...
Time Stamp:
(00:00:00) Intro
(00:00:10) Demo
(00:05:27) Setup
(00:06:15) Creating Window
(00:08:30) Adding Background Image
(00:14:41) Adding Heading
(00:20:20) Adding Entry Fields
(00:45:54) Creating Buttons
(00:53:34) Adding Logo Images
(00:59:38) Ending
Terms related to this video:
login page using tkinter python
login page using tkinter in python
login page using tkinter github
signup page using tkinter
simple login page using tkinter
login page in python tkinter with database
how to make login page in tkinter
login app using python
login form using python
how to create signin form using tkinter
how to create a registration form using python
login page python
python login page
Tags:
#tkinterproject #pythonproject #pythonguitutorial
★★★ Subscribe ★★★
/ @codinglifestyle4u
★★★ Follow ★★★
/ coding_lifestyle_4u
Thanks for watching.
Please Like, Subscribe & Share.
Stay tuned for upcoming projects 🙂
Awesome bro Really very clearly this Vedio
Thanks 😀
I hv used ,icon-icon to get the background image u used in project and can't get fine it?
Can u show me the pic of what u r trying to do on instagram coding_lifestyle_4u
Good day, what if i'd like to encrypt data insert when signup to database?
You can use the 'bcrypt' module to encrypt the data, for more information search on google how to use it
Thanks 👌 😊
All the best 😀
I have a little problem with all the borders. Even if I have put bd=0 I still have a little grey border around my entry zone that become black when I click on it and I don't know how to solve it. Also the background of every button don't want to change color.
To remove the grey border around an entry widget in Tkinter, you can set the highlightthickness to 0. Here's an example:
entry = Entry(root, bd=0, highlightthickness=0)
This should remove the grey border that appears around the entry widget.
Regarding the background color of the button not changing, make sure that you are using the correct option for setting the background color. The option for background color in Tkinter is 'bg' or 'background'
button = Button(root, text="Button", bg="red")
@@codinglifestyle4u thanks it is working now
sir whenever i add root.geometry or add font size it shows error and in error it take error from another file where python is install or that file when comes how to solve that it run only my commands not from other file
Send me the error pic on instagram coding_lifestyle_4u
When i try to move from one window to other it give me this error NameError: name 'SignUp' is not defined my file are ipynb file please guide me i can't change them to py file because i'm working in jupyter notebook
pip install nbconvert
Convert the .ipynb file into a Python script using the nbconvert command-line tool. For example:
jupyter nbconvert --to script notebook.ipynb
This will create a .py file with the same name as your notebook.
And then simply
import notebook
what app did you use to create a log in page and how to install?
I have used the community version of pycharm
Thanks for the new project. at 4:26 regarding re-setting of password, it would be better if it is verified through e-mail access which is practiced in professional password reset system to be more secured.. Pls. think about it.
Password is reset only when u will enter the correct email which u entered while sign up
@@codinglifestyle4u Thanks for your reply. but other person may know my email address ( e-mail is nothing seret) so anyone who knows my email , he can reset my pw easily. That's why there is system either email verification or one time pass code through email or mobile. Hope I could make you understand.
Ok got it ill try :)
@@codinglifestyle4u if there is a possibility to connect that GUI to online world. I think SUBORNO want it to at least put a verification code entry during the reset process. If verification code did not matched even if the email is correct then there's no way that the user can save the changes of the password, however when the user tried to reset a password using an email that never exist on the app there should be an error message telling the user that the email can't be able to receive verification code 'cos it didn't exist on the database.
Amazing keep it up but you forget to drop the imaga
Haha I added thanks for reminding me 😊
which application is used to do the program mean the program part which you are doing
Pycharm
I am new to Python, so I don't fully understand how things work. Everytime I attempt to add the Pillow module, it says ModuleNotFoundError: No module named 'PIL' I have uninstalled it multiple times. What needs to be done?
Install module by going into
Files- settings -project-python interpretor - click on plus icon - search for the module and install
Sir, you completely ROCK! I have it working within the PyCharm IDE; Visual Studio Code is still out-of-sync.
Great 😃
@@codinglifestyle4u oleh ol
@@codinglifestyle4u o
good day sir, from the very beginning mine is throwing an attribute error: AttributeError: 'PhotoImage' object has no attribute '_PhotoImage__photo'. Please may i know what i may be doing wrong?
Can u send me the error pic on instagram coding_lifestyle_4u
@@codinglifestyle4u I've sent you the message sir and you haven't replied
I replied
i am getting the same error please help me
sir im getting the same error please help me as i have to submit my project tomorrow@@codinglifestyle4u
Can i do this in Idle instead of pycharm??
Yes you can
having an exception name error although everything is proper kindly give some solution sir
What is the error? can u send me the pic on insta coding_lifestyle_4u
Hii , I have tried a lot of python projects on RUclips but yours is the best since I am able to understand it really well. Keep it up. But please can I get a link to download the background images and logo you used for this project? Since I have searched everywhere but can't find a good one. Thanks
Thank you, the images link is in the description of the video
35:20 would be easier to have just one def with elif ?
def on_enter(event):
if user_entry.get() == 'username':
user_entry.delete(0, END)
elif pass_entry.get() == 'password':
pass_entry.delete(0, END)
Yes 👍
add this as well...
elif user_entry.get() == '':
user_entry.insert(0, "Username")
elif pass_entry.get() == '':
pass_entry.insert(0, "Password")
add this to keep the label available whenever one of the text box is empty.
Thanks Daniel
@@codinglifestyle4u thank you more for having this patience to create such long video just to teach us on how to design that beautiful log in user interface.
can you please show how you connect mysql with python and also please great a python project that will connect to sql/mysql database please
Plz watch the videos i have explained how to connect python with mysql
Can you share the picture file you have used in this project?
Its there in the description of the video
26:58
def on_enter(enter):
if usernameentry.get()=="username":
usernameentry.delete(0,-1)
usernameentry('',on_enter())
throwing
TypeError: on_enter() missing 1 required positional argument: 'enter'
fix needed asap.
def on_enter(event):
if usernameentry.get() == "username":
usernameentry.delete(0, 'end')
usernameentry.bind('', on_enter)
@@codinglifestyle4u thanks found out the fix my bad. missed the bind.
Is there a way without using any modules?
No
comment for inline coding will help for starters please Thank you
Thank you for your feedback I will take care of this next time onwards
At the time of 36:18 i can't get my login screen what will be the problem sir i don't have any error issue then why the screen is not coming sir???
Did u use the root.mainloop() method at the end?
@@codinglifestyle4u no sir after that only i came to the knowledge sir .i have made it crt and thanks for the quick response sir
Yeah my pleasure 😀
@@codinglifestyle4u 😄
How do I connect login page to another page??when session is login..
You just have to import another python file just like we imported the login file when clicking on the signup button
@@codinglifestyle4u me try kr chuki hu but nh hua
Show me the code pic on insta coding_lifestyle_4u
Can I use this application in my mobile
No, its only for desktop
Can I buy your code without using Indian money? I'm from Thailand.
If you have PayPal then ping me on instagram coding_lifestyle_4u
But mari image small aarhi ha kya kru sir?
Konsi image ?
Design page not getting,where should I get
Check the description
Can I get the code sir?
Text me on instagram coding_lifestyle_4u
How to change size of the image😅
You can use the image resize method of tkinter ..u can search on google
Instagram work nahin le raha hai aapka
coding_lifestyle_4u ..ye search karo
Mujhe iska soch code chahie Jo video mein Bata rahe hain to 1 se 4 Tak aapka yah video hai yah Charon ka mujhe Kaun file chahie
Instagram pe msg karo 'coding lifestyle 4u'
@@codinglifestyle4u Instagram aapka nahin le raha
How do I get the pic tho🤧
It is in the description 😃
from tkinter import *
from PIL import ImageTk
if you have .png or .gif you can use just Photoimage - (Tkinter)
For other formats as .jpeg , .bmp and others you use
ImageTk.PhotoImage(file="image name") - (Pillow)
Thanks
@@codinglifestyle4u how do I get the back ground image
Thats in the description of the video
Can you provide source code link plzz....?
It would be better if you try to build it by watching tutorials
@@codinglifestyle4u but tomorrow is my submission and its an emergency so plzz can to provide it ?
how to convrt code into apk?
This is a desktop app
Ok...
If I write code for android then how to convert this code to apk.
Ask chatgpt I dont have any idea about android
@@codinglifestyle4u ok thanks
Esi applications banao jo mobile me bhi chale please
Ok sure 😊
Thx
Sourcecode sir?
Ping me on instagram coding_lifestyle_4u
can you provide the source code link?
Sorry please build it by watching the tutorials
i cant download the images
The images are in the description.
Check the google drive link
can u do this using pycharm
Yes
broo can be in contact with u cuz i am currently working on a project where i am building a login and registration page in python
Having an exception Tclerror
What is the complete error .
You can rewatch that part and see where you are making a mistake
Can i get your linkedIn profile ??? I want to connect with you on LinkedIN. Because the way you explain the things in this project is really incredible 😍😍 , your explanation is very easy to understand and easy to grasp!!!
Thank you so much I don't have a LinkedIn profile yet
Instagram search karke hi aapka wala mein jaate Hain to to nahin le raha hai
Text me ur whatsapp no. On my email
codinglyfstyle@gmail.com
Парень не умеет пользоваться булевой логикой.)
Aapka Mel mein WhatsApp number likh diya hun aur apna email id bhi usi mein add kar diya St mein according file mujhe bhej dijiyega taki mein bhi yah video dekhkar shikshakon aap ko dene ke liye dhanyvad
Iske sath ISI mein aapka 4 video mein banae hain kya Charon ka coding file mujhe bhej dijiye aapka dene ke liye mujhe dhanyvad kar raha hun sir thank you❤❤