0% found this document useful (0 votes)
5 views1 page

oo

This document contains a Python script that creates a registration form using the Tkinter library. The form includes fields for name, email, gender selection, country, and coding language, along with a 'remember me' checkbox and a submit button. There are several errors in the code, such as misspelled method names and incorrect variable assignments.

Uploaded by

bestvalorant17
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

oo

This document contains a Python script that creates a registration form using the Tkinter library. The form includes fields for name, email, gender selection, country, and coding language, along with a 'remember me' checkbox and a submit button. There are several errors in the code, such as misspelled method names and incorrect variable assignments.

Uploaded by

bestvalorant17
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

from tkinter import *

root = Tk()
root.geomatery ("500X300")

Label(root, text="Python Registration Form", font="ariel 15 bold").grid(row=0,


column=3)

name = Label(root, text="Name")


Email = Label(root, text="Email")

gender_label = Label(root, text='Gender')


male = Radiobutton(root, text='Male')
female = Radiobutton(root, text='Female')

name_label.grid(row=1, column=1)
name_entry.grid(row=1, column=2, columnspan=2)

gender_label.grid(row=4, column=1)
male.grid(row=4, column=2, sticky="nsew")
female.grid(row=4, column=3, sticky="nsew")

SelectCountry = Label(root, text="Select country")


YourCodingLanguage = Label(root, text="Your Coding Language")

name_label.grid(row=1, coulumn=1)
Email_label.grid(row=2, coulumn=2)
YourCountry.grid(row=2, coulumn=2)
YourCodingLanguage.grid(row=2, coulumn=2)
namevalue = StringVar
Emailvalue = StringVar
YourCountry = StringVar
YourCodingLanguage = StringVar
checkvalue = IntVar

nameentry = Entry(root, textvariable =namevalue)


Emailentry = Entry(root, textvariable =Emailvalue)
YourCountry = Entry(root, textvariable =YourCountryvalue)
YourCodingLanguage = Entry(root, textvariable =YourCodingLanguage)

nameentry.grid(row=1, column=3)
Emailentry.grid(row=2, column=3)
YourCountryentry.grid(row=3, column=3)
YourCodingLanguageentry.grid(row=4, column=3)

checkbtn = Checkbutton(text="remember me?", variable = valuecheck)


checkbtn.grid(row=6, column=3)

Button(text="Submit", command=getvals).grid(row=7, column=3)

root.mainloop()

You might also like