Open In App

Hello World in Tkinter

Tkinter is the Python GUI framework that is build into the Python standard library. Out of all the GUI methods, tkinter is the most commonly used method as it provides the fastest and the easiest way to create the GUI application.

Creating the Hello World program in Tkinter

Lets start with the ‘hello world’ tutorial. Here is the explanation for the first program in tkinter:



Below is the implementation.




# Python tkinter hello world program
  
from tkinter import *
  
root = Tk()
a = Label(root, text ="Hello World")
a.pack()
  
root.mainloop()

Output:

Article Tags :