Tk is a graphical user interface (GUI) library. It allows to create windows, buttons and all the other graphical elements.
This tutorial shows how to use object-oriented programming (OOP) for making applications with the Tk framework.
You can find the online tutorial here: https://tk-tutorial.readthedocs.io