An interpreted language is a programming language in which programs are 'indirectly' executed ("interpreted") by a interpreter program running in the background. This interpreter program eats up hardware resources a single running "compiled program" wouldn't in most cases.
A compiler is a computer program (or set of programs) that transforms source code, written in a programming language (the source language), into another computer language (the target language, often having a binary form known as object code).
A compiled language (e.g. C/C++, Pascal, even VB, etc.) is converted into minimal machine code and then 'directly' executed by the host CPU/MPU. It's faster and requires fewer hardware resources.
I realize you probably already know most of this - I'm just not sure why you seem to be stumbling over it. Anyway, I just wanted to spelled it out for those who may read the thread and do not know the difference.
from tkinter import *
class Window(Frame):
def __init__(self, master=None):
Frame.__init__(self, master)
self.master = master
self.init_window()
def init_window(self):
self.master.title("GUI")
self.pack(fill=BOTH, expand=1)
quitButton = Button(self, text="Quit", command=self.client_exit)
quitButton.place(x=20, y=20)
def client_exit(self):
exit()
root = Tk() root.geometry("400x300")
app = Window(root)
root.mainloop()