Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- class Register:
- def __init__(self,master):
- f = Frame(master, height =350,width = 600)
- f.propagate(0)
- f.pack()
- #-----------------------Labels----------------------
- self.name = Label(text = "First Name : ")
- self.lname = Label(text = "Last name : ")
- self.email = Label(text = "Email id : ")
- self.uname = Label(text = "Username :")
- self.pw = Label(text = "Enter password : ")
- self.cpw = Label(text = "Confirm password : ")
- #----------------------Textboxes----------------------
- self.tname = Entry(f, width=30)
- self.tlname = Entry(f, width=30)
- self.temail = Entry(f, width=30)
- self.tuname = Entry(f, width=30)
- self.tpw = Entry(f, width=30)
- self.tcpw = Entry(f, width=30)
- #----------------------Button-------------------------
- self.submit = Button(f, text="Submit",command = self.c_submit)
- self.cancel = Button(f, text="Cancel",command = self.c_cancel)
- #----------------------Position----------------------
- self.name.place(x=50 ,y=100)
- self.tname.place(x=150 ,y=100)
- self.lname.place(x=50 ,y=150)
- self.tlname.place(x=150 ,y=150)
- self.email.place(x=50 ,y=200)
- self.temail.place(x=150 ,y=200)
- self.uname.place(x=50 ,y=250)
- self.tuname.place(x=150 ,y=250)
- self.pw.place(x=50 ,y=300)
- self.tpw.place(x=150 ,y=300)
- self.cpw.place(x=50 ,y=350)
- self.tcpw.place(x=150 ,y=350)
Add Comment
Please, Sign In to add comment