Python Automation and Machine Learning for EM and ICs

An Online Book, Second Edition by Dr. Yougui Liao (2024)

Python Automation and Machine Learning for EM and ICs - An Online Book

Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

Get Coordinate Difference between Mouse Positions

Get coordinate difference between mouse positions from a clicked position. Code:
         Upload Files to Webpages
       Output:    
         Upload Files to Webpages

============================================

Get coordinate difference between mouse positions from the position of the center of a rectangle drawed by using the mouse position, when the mouse is pressed, as top left corner, and the mouse position, when the mouse is released, as bottom right corner.
Method: press, draw, and then release the mouse to draw a rectangle after 3 seconds. Code:
         Upload Files to Webpages
         Upload Files to Webpages
       Output:    
         Upload Files to Webpages