Skip to main content

Creating designed pages in tkinter

Here in this blog we can make the creative pages in tkinter for the entry section


 


So here are the following codes for that:-

from tkinter import *
user_form=Tk()
user_form.geometry("750x450")
user_form.title("Register form")
user_form.resizable(0,0)
pic1=PhotoImage(file="user_form.png")
user_form1=Label(user_form,image=pic1,width=750,height=450)
user_form1.image=pic1
user_form1.pack()

name_en=Entry(user_form,width=14,relief="flat",font=("times",20))
name_en.place(relx=0.385,rely=0.265)

user_en=Entry(user_form,width=19,relief="flat",font=("times",20))
user_en.place(relx=0.385,rely=0.365)

psswd_en=Entry(user_form,width=18,relief="flat",font=("times",20))
psswd_en.place(relx=0.385,rely=0.485)

pic3=PhotoImage(file="register.png")
but1=Button(user_form,image=pic3,relief="flat",background="white")
but1.image=pic3
but1.place(relx=0.425,rely=0.650)

user_form.mainloop()

Comments

Popular posts from this blog

How to add the treeview numbers to get the grand total in tkinter entry box

 in this blog we are going to know about the adding of the integers in the treeview and get the total in the entry box of tkinter so here is the image first so the coding to do such things are here as follow but here is the condition that pls make assured that the state of entry box is disabled.......      for child in my_tree1 . get_children ():         e2l . config ( state = "normal" )         b1 += float ( my_tree1 . item ( child , "values" )[ 3 ])         var2 . set ( b1 )         e2l . config ( state = "disable" )      l2l = Label ( ento , text = "Purnea-2" , width = 8 )      l2l . grid ( row = 0 , column = 1 )     e2l = Entry ( ento , textvariable = var2 , state = "disable" , width = 8 )     e2l . grid ( row = 1 , column = 1 )