File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
GUIScripts/Event Handling Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ ## Description:
2+ - My project works on Event Handling.
3+ - Event Handling In Tkinter Python means to bind the keyboard or mouse buttons to the Tkinter and use them to call some functions.
4+ - For GUI we will use ** "tkinter module"** because it’s very easy to learn and use.
5+ - We use ** bind()** function to bind keys and functions to each other.
6+
7+ ## Procedure:
8+ ``` python
9+ from tkinter import *
10+ ```
11+ - First after importing modules, we will then initialise tkinter
12+ - After that we will set Height and width of the variables.
13+ - Then we will set the title for ** GUI** and geometry of ** GUI** .
14+ - After that we will define ** me()** function which will tell how much time you have clicked.
15+ - Then we will use ** bind()** function which will bind left and right mouse button to root.
16+
17+ ## Sample Output:
18+ ![ LGM] ( https://github.com/AmitGupta700/Awesome_Python_Scripts/blob/main/GUIScripts/Event%20Handling/Images/output.png )
19+
20+ ## For any query please contact:
21+ <a href =" https://www.linkedin.com/in/amit-gupta-681206191/ " >LinkedIn</a >
You can’t perform that action at this time.
0 commit comments