Coders Packet

Entry and Exit points of the Cursor in a Frame using Python and tkinter


This project tells the x and y coordinates of the entry and exit of the cursor from the frame. Tkinter package is used to create GUI.

In this project, the packet outputs the Entry and Exit coordinates of the Cursor inside the create Frame. 

The frame has dimensions of 400x200.

Two functions _enter_ and _exit_ are created in the program which are responsible for printing the coordinates. 

_enter_() prints the Entry points and

_exit_() prints the Exit points.

A frame of the same dimensions is created in the GUI. The bind() is used for binding the frame. When the cursor enters inside the frame the bind function calls the _entry_() and when the cursor exits _exit_() is called.


Download Complete Code


No comments yet