import tkinter as tk

def logining():
pass

root = tk.Tk()
root.geometry("450x250+400+200")
root.iconbitmap("padlock.ico")
root.resizable(False, False)

login_label = tk.Label(root, text="Login", font=("Arial", 14), padx=50)
password_label = tk.Label(root, text="Password", font=("Arial", 14), padx=50)
login_entry = tk.Entry(root, font=("Arial", 12), width=20)
password_entry = tk.Entry(root, font=("Arial", 12), width=20, show="*")
login_button = tk.Button(root, text="LOGIN", font=("Arial", 16), width=12, command=logining)

root.grid_columnconfigure(0, minsize=150)
root.grid_columnconfigure(1, minsize=250)
root.grid_rowconfigure(0, minsize=90)
root.grid_rowconfigure(1, minsize=90)

login_label.grid(column=0, row=0, sticky="w")
password_label.grid(column=0, row=1, sticky="w")
login_entry.grid(column=1, row=0, sticky="w")
password_entry.grid(column=1, row=1, sticky="w")
login_button.grid(columnspan=2, row=2)

root.mainloop()
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


More Questions From This User See All

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.