"""
main: https://www.youtube.com/results?search_query=python+3+Programming+Tutorial+-+Tkinter
https://www.youtube.com/watch?v=Ccct5D2AyNM
adding buttons :https://www.youtube.com/watch?v=Ccct5D2AyNM
"""
from tkinter import *

TITLENAME = "GUI"
class Window(Frame):

    def __init__(self, master = None):
        Frame.__init__(self, master)
        self.master = master
        self.init_window() #this is function we create
                            # to add more function to the window
    def init_window(self):
        self.master.title(TITLENAME)
        self.pack(fill=BOTH, expand=1)
        quit_button = Button(self, text = "quit", command=self.client_exit)
        quit_button.place(x=0, y=0)
        self.pack()

    def client_exit(self):
        exit()

root = Tk()
#resize the window
root.geometry("400x300")
app = Window(root)
root.mainloop()
