Introduction to Tkinter

Tkinter is the python library to create GUI application using python . Using Tkinter we can easily create desktop applications for application softwares , gaming and other applications. 

For Tkinter we nee to install tkinter module first then we can create the GUI window and may add widgets to that window.

Steps to use GUI programming in Tkinter:

(a) install module Tkinter using pip
(b) import the tkinter module
(c) create the GUI window
(d) add the GUI widget on the screen

import tkinter as tk  # import for python 3
#import Tkinter as tk #import for python 2
root = tk.Tk()
frame = tk.Frame(root)
frame.pack()
root.mainloop()

Output of the above program is as following.

Click Here

Video/ C Introduction

Watch video in full size