I was trying to find out what tk is (with respect to tkinter) and I regularly came across the words API and "binding". What do they mean?

8 Years
Discussion Span
Last Post by Stefano Mtangoo

API means "Application Programming Interface". When you write a piece of software, there may be a human interface (like a GUI) which allows a user to interact with your software and an API interface, which allows a user program to interact with your software. The API is usually a collection of classes and functions which constitute a library.

In the context of GUI programming (like tkinter), "binding" usually means that you attach a function to be executed to a part of a GUI (like a button or a slider), so that if the user presses the button, the function is executed. One says that the function is bound to the button.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.