Creating the Hello World program in Tkinter
- from tkinter import * In Python3 firstly we import all the classes, functions and variables from the tkinter package.
- root=Tk() Now we create a root widget, by calling the Tk() . ...
- a = Label(root, text="Hello, world!") ...
- a.pack() ...
- root.mainloop()