0

So, I have to do a report about my tkinter app, but i am not finding the words to describe what this part of the code does. How would you explain it?

class App(customtkinter.CTk):

    (...)

if __name__ == "__main__":
    app = App()
    app.start()

Can anyone help me?

1 Answers1

2

I'll break it down in to a few parts

app = App()

Creates an instance of the class App with the name app.

app.start()

Calls the start method of the App class instance. Presumably this is equivalent to using the mainloop method as is normally done with tkinter rather than this customtkinter module.

scotty3785
  • 6,763
  • 1
  • 25
  • 35