Design 1:
Login Form:
Login Form Code:(Copy the code)
from tkinter import*
root=Tk()
root.geometry("300x600+0+0")
root.title("Login")
layout1=Label(root,bg="#6666FF",height=7,width=37)
layout1.pack()
layout2=Label(root,bg="white",height=25,width=37)
layout2.place(x=0,y=140)
canvas = Canvas(root, width = 50, height = 48,bg="#6666FF")
canvas.place(x=150,y=40)
img = PhotoImage(file="image/User-48.png")
canvas.create_image(5,5, anchor=NW, image=img)
Login=Label(root,text="Login",bg="#6666FF",fg="white",font="Arial 14 bold")
Login.place(x=50,y=50)
Email=Label(root,text="Email",bg="white",fg="#FF3399",font="Arial 10")
Email.place(x=50,y=200)
E1=Entry(root,fg="gray",relief=FLAT)
E1.place(x=50,y=250)
E1.focus()
C = Canvas(root, height=1, width=200,bg="red")
line = C.create_line(0,0,10000,100,fill='red')
C.place(x=50,y=270)
password=Label(root,text="Password",bg="white",fg="#FF3399",font="Arial 10")
password.place(x=50,y=320)
E2=Entry(root,fg="gray",relief=FLAT)
E2.place(x=50,y=370)
C = Canvas(root, height=1, width=200,bg="red")
line = C.create_line(0,0,10000,100,fill='red')
C.place(x=50,y=390)
b1=Button(root,text="LOGIN",bg="#FF3399",fg="white",font="Arial 12",width=18,relief=FLAT,activebackground ="#FF3399",activeforeground="white")
b1.place(x=50,y=440)
root.mainloop
Design 2:
Simple Light Login Form:
Simple Light Login Form Code:(Copy the code)
from tkinter import*
root=Tk()
root.geometry("300x600+0+0")
root.title("Login")
root.resizable(0,0)
#########################################################################################
layout1=Label(root,bg="white",height=7,width=37)
layout1.pack()
layout2=Label(root,bg="white",height=25,width=37)
layout2.place(x=0,y=140)
########################################################################################
canvas = Canvas(root, width = 60, height = 60,bg="white")
canvas.place(x=50,y=10)
img = PhotoImage(file="image/lock_2-48.png")
canvas.create_image(5,5, anchor=NW, image=img)
########################################################################################
Login=Label(root,text="Welcome Back,",bg="white",fg="black",font="Arial 12 bold")
Login.place(x=50,y=100)
signin=Label(root,text="sign in to continue",bg="white",fg="gray",font="Arial 12")
signin.place(x=50,y=130)
Email=Label(root,text="Email",bg="white",fg="black",font="Arial 9 bold")
Email.place(x=50,y=200)
E1=Entry(root,fg="gray",relief=FLAT)
E1.place(x=50,y=250)
E1.focus()
C = Canvas(root, height=1, width=200,bg="gray")
line = C.create_line(0,0,10000,100,fill='gray')
C.place(x=50,y=270)
password=Label(root,text="Password",bg="white",fg="black",font="Arial 9 bold")
password.place(x=50,y=320)
E2=Entry(root,fg="gray",relief=FLAT)
E2.place(x=50,y=370)
C = Canvas(root, height=1, width=200,bg="gray")
line = C.create_line(0,0,10000,100,fill='gray')
C.place(x=50,y=390)
###############################################################################################
b1=Button(root,text="Forget Password?",bg="white",fg="gray",font="Arial 9 bold",relief=FLAT,activebackground ="white",activeforeground="gray")
b1.place(x=120,y=400)
b2=Button(root,text="Login",bg="#FF00FF",fg="white",font="Arial 10 bold",width=20,relief=FLAT,activebackground ="#FF3399",activeforeground="white")
b2.place(x=45,y=470)
l3=Label(root,text="New user?",bg="white",fg="gray",font="Arial 10")
l3.place(x=100,y=520)
b2=Button(root,text="Signup",bg="white",fg="#FF00FF",font="Arial 9 bold",relief=FLAT,activebackground ="white",activeforeground="gray")
b2.place(x=180,y=517)
########################################################################################
root.mainloop
Design 3:
Simple dark Login Form:
Simple dark Login Form code:(Copy the code)
from tkinter import*
root=Tk()
root.geometry("300x600+0+0")
root.title("Login")
root.configure(background='#333333')
###########################################################################
canvas = Canvas(root, width = 68, height = 68,bg="white")
canvas.place(x=110,y=80)
img = PhotoImage(file="image/Martz90.png")
canvas.create_image(5,5, anchor=NW, image=img)
########################################################################################
Email=Label(root,text="Username",bg="#333333",fg="gray",font="Arial 9 bold")
Email.place(x=50,y=200)
E1=Entry(root,fg="gray",relief=FLAT,bg="#333333")
E1.place(x=50,y=250)
E1.focus()
C = Canvas(root, height=1, width=200,bg="gray")
line = C.create_line(0,0,10000,100,fill='gray')
C.place(x=50,y=270)
password=Label(root,text="Password",bg="#333333",fg="gray",font="Arial 9 bold")
password.place(x=50,y=320)
E2=Entry(root,fg="gray",relief=FLAT,bg="#333333")
E2.place(x=50,y=370)
C = Canvas(root, height=1, width=200,bg="gray")
line = C.create_line(0,0,10000,100,fill='gray')
C.place(x=50,y=390)
###############################################################################################
b1=Button(root,text="Forget Password?",bg="#333333",fg="gray",font="Arial 9 bold",relief=FLAT,activebackground ="white",activeforeground="gray")
b1.place(x=120,y=400)
b2=Button(root,text="Login",bg="#009933",fg="black",font="Arial 10 bold",width=20,relief=FLAT,activebackground ="#FF3399",activeforeground="white")
b2.place(x=45,y=470)
l3=Label(root,text="New user?",bg="#333333",fg="gray",font="Arial 10")
l3.place(x=100,y=520)
b2=Button(root,text="Signup",bg="#333333",fg="#009933",font="Arial 9 bold",relief=FLAT,activebackground ="white",activeforeground="gray")
b2.place(x=180,y=517)
########################################################################################
root.mainloop
Code & Concept Copyrights@Saravanakumar from psktechnology
Comments
Post a Comment