Tkinter is a GUI (Graphical User Interface) module which is widely used in the desktop applications. It comes along with the Python, but you can also install it externally with the help of pip command.
It provides variety of Widget classes and functions with the help of which one can make our GUI more attractive and user friendly in terms of both looks and functionality.
Binding function is used to deal with the events. We can bind Python’s Functions and methods to an event as well as we can bind these functions to any particular widget.
Code #1: Binding mouse movement with tkinter Frame.
Code #2: Binding Mouse buttons with tkinter Frame
Code #3: Binding keyboard buttons with root window (tkinter main window).
Note: When we bind keyboard buttons with the tkinter window, whenever we press special characters we will only get space while in case of alphabets and numericals we will get actual values (in string).
- Binding Function with double click with Tkinter ListBox
- Python | askopenfile() function in Tkinter
- Python | asksaveasfile() function in Tkinter
- Python - Binding and Listening with Sockets
- Python GUI - tkinter
- Python Tkinter Tutorial
- RadioButton in Tkinter | Python
- Python: Age Calculator using Tkinter
- Python Tkinter - Message
- Python | after method in Tkinter
- Python Tkinter - SpinBox
- Different messages in Tkinter | Python
- Python | GUI Calendar using Tkinter
- Python-Tkinter Scrollbar
- Python Tkinter - Label
- Create a Yes/No Message Box in Python using tkinter
- Collapsible Pane in Tkinter | Python
- Python | Creating a button in tkinter
- Python | PanedWindow Widget in Tkinter
- File Explorer in Python using Tkinter
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.