In this project, we will be learning how to default set data inside Entry Widget.
Entry_Widget_Object.insert(start_index, message_to_display)
when the below code is executed, we will be a getting a window as above.
#program
try:
from Tkinter import *
except:
from tkinter import *
mw = Tk()
mw.geometry("600x100+50+50")
mw.title("AETies : Automation Expert Technologies")
hdng = Label(mw, text='A simple format of REGISTRATION FORM ', fg='blue', pady=10).pack()
# ********** designing name section **********
name_l = Label(mw, text='Name :\t', ).place(x=10, y=50)
name_fn = Entry(mw, width=22)
name_fn.place(x=100, y=50)
name_fn.insert(0,'first name')
name_ln = Entry(mw, width=22)
name_ln.place(x=350, y=50)
name_ln.insert(0,'last name')
mainloop()
Comments
Post a Comment