Python GUI Tkinter – 01 Introduction – Up and running with Tkinter

Introduction Python GUI with Tkinter:

Python GUI Tkinter is Python’s de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk.Tkinter is not the only GuiProgramming toolkit for Python. It is however the most commonly used one. CameronLaird calls the yearly decision to keep TkInter “one of the minor traditions of the Python world.” In this article you guys will learn “Python GUI” with “Tkinter”

Up and running with Python Tkinter:

 

Code:

from tkinter import * #importing all classes from tkinter Library

root=Tk() #main window to show

myLabel=Label(root,text="This is our first tkinter tutorail") #label to for showing on main window

myLabel.pack() #packing label to display on main window = root

root.mainloop() # looping to show main screen repeatedly 




Learn More