Thank you for you patience with another newbie question. I am learning tkinter and I am confused about the mainloop(). What exactly is looping? For example:
import tkinter as tk
class Test(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
self.create_widgets()
x = 2
x += 1
print(x)
def create_widgets(self):
y = 1
y += 1
print(y)
root = tk.Tk()
app = Test(master=root)
app.mainloop()
If this program was looping through class Test (or either of the functions), my console should keep printing increasing x and y values. Of course, it doesn't. It simply prints x and y one time.
Thank you for your the help!