##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 13\13.01 - A first program with tkinter.py
# Description: A first program with tkinter
##############################################################################
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.title("First Window")
root.geometry("250x50")
frame = ttk.Frame(root)
text = ttk.Label(frame, text="Hello GUI!")
text.pack()
button = ttk.Button(frame, text="Quit", command=root.destroy)
button.pack()
frame.pack(expand=True)
root.mainloop()