python what is the main component to create a gui code example
Example 1: python gui
import tkinter as tk
#Importing the main module
window = tk.Tk()
window.mainloop()
Example 2: how to create tkinter window
import tkinter
master = tkinter.Tk()
master.mainloop()