tkinter - Hello World! Program

If you are looking for tkinter Hello World! program, here is a simple example,

from tkinter import *
root = Tk()

hello_label = Label(root, text="Hello World!")
hello_label.pack()
root.mainloop()
Output:
tkinter - hello world program output
tkinter - hello world program output

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!