Pre Course Home Next

Python GUI Tkinter Tutorial

Create Simple Window

Python tkinter gives rich sets of UI controls. The most basic thing in GUI is the window that shows different controls. So in this tutorial we see how to create a normal window.

from tkinter import *

root = Tk()

w.pack()

root.mainloop()

This code will create a very basic window, as per your windows manager styles.

Pre Course Home Next