Why does tk.Tk.__init__(self, *args, **kwargs)
open a new window and what does the parameters inside it do?
for example:
import tkinter as tk
class App(tk.Tk):
def __init__(self, *args, **kwargs):
tk.Tk.__init__(self, *args, **kwargs)
tk.Label(self, text='text on the screen').pack()
app = App()
tk.mainloop()
edit: I wasn't really asking what *args and **kwargs do I mainly wanted to know what tk.Tk.__init__(self)
does!