Azul Coding
Simple Python Tkinter Program
app.py
# AZUL CODING ---------------------------------------
# Simple Python Tkinter Program
# https://youtu.be/wBdb5Xk9IAk
from tkinter import *
master= Tk()
master.title("Simple Tkinter Program")
master.resizable(width=False, height=False)
master.configure(bg='white')
text1 = ""
text2 = ""
e1 = Entry(master, text=text1)
e2 = Entry(master, text=text2)
def callback() :
messagebox.showinfo('Hi', 'Hello, ' + str(e1.get()) + ' ' + str(e2.get()))
Label(master, text="Title", bg="white", width="10").grid(row=0)
Label(master, text="Name", bg="white", width="10").grid(row=1)
Button(master, text=" OK ", command=callback).grid(row=2, column=1, sticky=E, padx=40)
Button(master, text=" Quit ", command=master.destroy).grid(row=2, column=1, sticky=E)
e1.grid(row=0, column=1)
e2.grid(row=1, column=1)
mainloop()