-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ | |
1. basic Login & Sign UP for beginners | ||
https://medium.com/@moinahmedbgbn/a-basic-login-system-with-python-746a64dc88d6 | ||
|
||
|
||
2. Video Basic python login | ||
https://youtu.be/D0xVD8eUk4o | ||
|
||
---------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------- | ||
|
@@ -62,6 +66,93 @@ def signup(): | |
|
||
---------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------- | ||
|
||
|
||
|
||
//2. Video: https://youtu.be/D0xVD8eUk4o?t=1702 | ||
|
||
-----> Python Form <------ | ||
|
||
|
||
//Form window | ||
|
||
form tkinter import * | ||
|
||
root = Tk() | ||
root.mainloop(); | ||
|
||
|
||
|
||
form tkinter import * | ||
|
||
from PIL image ImageTk,Image //Library for image | ||
//pip install pillow | ||
|
||
from tkinter import messagebox | ||
|
||
|
||
def handle_login(): | ||
email = email_imput.get() | ||
password = password_input.get() | ||
print(email,password) | ||
|
||
if email == '[email protected]' and password =='1234': | ||
messagebox.showinfo('yyyys','Login Successful') | ||
else: | ||
messagebox.showerror('Error','Login Failed') | ||
|
||
|
||
|
||
root = Tk() | ||
root.title('Login Form') | ||
root.iconbitmap('favicon.ico') //Change icon | ||
|
||
//Adding image | ||
|
||
|
||
//root.minsize(100,100) //Window size | ||
//or | ||
root.geometry('350x500') //Specific size | ||
|
||
root.configure(background='#0096DC') | ||
|
||
root.Image.open('flipkart-logo.png') | ||
resized_img = img.resize((100,100)) | ||
img = ImageTk.PhotoImage(resized_img) | ||
|
||
img_label = Label(root,image=img) | ||
//img_label.pack() | ||
//or | ||
imge_lable.pack(pady=(10,10)) | ||
|
||
text_label = Label(root,text='Flipkart',fg=white,bg='#0096DC') | ||
text_lable.pack() | ||
text_lable.config(font=('verdana',24)) | ||
|
||
email_label = Label(root,text='Enter Email',fg=white,bg='#0096DC') | ||
email_lable.pack(pady=(20,5)) | ||
email_lable.config(font=('verdana',14)) | ||
|
||
email_imput = Entry(root,width=50) | ||
email_input.pack(pady=6,pady=(1,15)) | ||
|
||
|
||
password_label = Label(root,text='Enter Password',fg=white,bg='#0096DC') | ||
password_lable.pack(pady=(20,5)) | ||
password_lable.config(font=('verdana',12)) | ||
|
||
password_imput = Entry(root,width=50) | ||
password_input.pack(pady=6,pady=(1,15)) | ||
|
||
login_btn = Button(root,text='Login Here',fg='black',bg='white',width=20,height=2) | ||
login_btn.pack(pady=(10,20)) | ||
login_btn.config(font=('verdana',10)) | ||
|
||
root.mainloop(); | ||
|
||
|
||
-----x----- | ||
|
||
---------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------- |