Untitled

mail@pastecode.io avatar
unknown
python
a month ago
807 B
1
Indexable
Never
# LOGIN SYSTEM
from tkinter import *
root = Tk()

root.title('Login System')
root.geometry('350x200+750+450')

username_frame = Frame(root)
password_frame = Frame(root)
buttons_frame = Frame(root)

username_label = Label(username_frame, text='Username: ')
password_label = Label(password_frame, text='Password: ')

username_entry = Entry(username_frame)
password_entry = Entry(password_frame)

login_button = Button(buttons_frame, text='Login')
signup_button = Button(buttons_frame, text='Signup')

## PACKING
username_frame.pack(pady=5)
password_frame.pack(pady=5)
buttons_frame.pack()
username_label.pack(side='left')
password_label.pack(side='left')
username_entry.pack()
password_entry.pack()
login_button.pack(side='left', padx=20)
signup_button.pack()

root.mainloop()
Leave a Comment