Master Code forms all control tkinter connect csv_insert_image.py
Master Code forms all control tkinter connect csv_insert_image.py
roww=0
columnn=5
fullname=StringVar()
enter_1 = Entry(base,textvariable=fullname) #Using Enrty widget to make a text
entry box for accepting the input string in text from user.
enter_1.grid(row=1+roww,column=5+columnn)
email=StringVar()
enter_3 = Entry(base,textvariable=email) #Using Enrty widget to
make a text entry box for accepting the input string in text from user.
enter_3.grid(row=4+roww,column=5+columnn)
vars = IntVar() #Using variable 'vars' to store the integer value, which by deault
is 0
"""
vars2=tk.IntVar()
Checkbutton(base,text="German", variable=vars2).grid(row=12,column=6+columnn)
#Using the Checkbutton widget to create a button and using place() method to set
its position.
def submit():
f_name=fullname.get()
add=enter_2.get("1.0","end") # entire content get("1.0","end") , 1st line
get("1.0","2.0") , third chracater get("2.2","2.3")
email1=email.get()
password1=password.get()
radio=vars.get()
check1=vars1.get()
check2=vars2.get()
droplist_select=cv.get()
print("Full Name",f_name)
print("Address",add)
print("Email ",email1)
print("Password ",password1)
print("Radio button ",radio)
print("drop list selection : ",droplist_select)
print(check1,check2)
if check2>0:
print("German OK")
elif check1>0:
print("English OK")
def open_img():
# Select the Imagename from a folder
x = openfilename()
print("File Path ",x)
# opens the image
img = Image.open(x)
# create a label
panel = Label(base, image = img)
def openfilename():
# Create a button and place it into the window using grid layout
btn = Button(base, text ='open image', command =
open_img).grid(row=18,column=5+columnn)