Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import*
- root =Tk()
- name=Label(root,text="Name")
- pwd=Label(root,text="Password")
- entryname=Entry(root)
- entrypwd=Entry(root)
- but1=Button(root,text="Submit",fg="green",bg="yellow")
- c1=Checkbutton(root,text="Male")
- c2=Checkbutton(root,text="Female")
- name.grid(row=0)
- pwd.grid(row=1)
- c1.grid(row=2,columnspan=3)
- c2.grid(row=3,columnspan=3)
- entryname.grid(row=0,column=1,sticky=E)
- entrypwd.grid(row=1,column=1,sticky=E)
- but1.grid(row=4,columnspan=4,sticky=E)
- name1=Label(root,text=Entryname)
- name1.pack()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement