how to make tkinter window attractive code example
Example 1: how to make a tkinter window
from tkinter import *
mywindow = Tk() #Change the name for every window you make
mywindow.title("New Project") #This will be the window title
mywindow.geometry("780x640") #This will be the window size (str)
mywindow.minsize(540, 420) #This will be set a limit for the window's minimum size (int)
mywindow.configure(bg="blue") #This will be the background color
mywindow.mainloop() #You must add this at the end to show the window
Example 2: how to create window in tkinter
import tkinter as tk
window = tk.Tk() #Creates a window
window.title("Trial") # Sets a title for the window
window.geometry(520,850)# Size of window optional
window.minisize(520,850) # Minimum size of window
window.mainloop()# Sets visiblility to true