It basically uses Tkinter, the famous GUI library of python
It has an entrybox that can accept input from the keyboard. Additionally, it also has some buttons which when pressed automatically inserts the corresponding character in the entrybox. After that, when the equal button is clicked, it takes the input frm the entrybox and evaluates the result using the eval() function of python.