Gui windows in python
# Widgets = GUI elements: buttons textboxes, labels images
# windows = serves as a countainer to hold or contain these widgets
from tkinter import *
window = Tk()# instantiate an instance of a window
window.geometry("400x400")
window.title("First Gui program")
icon = PhotoImage(file="1.png")
window.iconphoto(True, icon)
window.config(bg="cyan")
window.mainloop()# place window on comcputer screen
Comments
Post a Comment