Skip to content

Commit

Permalink
SQL Tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
astechedu committed Mar 21, 2024
1 parent 9640a4a commit 86bbbeb
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions sqlphp/developer-notes/python/core.python/python.login.signup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Expand Down Expand Up @@ -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-----

----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------

0 comments on commit 86bbbeb

Please sign in to comment.