Suppose you've got a rectangle (x=3456) * (y=1943). These dimension values may vary. What I need to make is dividing this area equally into z pixel square portions and print A1, A2, A3,..,B1, B2, B3..,C1, C2, C3 depending on where my cursor is on.
For example: If the curser is on 123, 85 or in 30, 15 it will Print A1 so on and so forth.
I need to generate this switch case structure automatically according to the the x,y size given dynamically. But each time every portion needs to be definable z pixel square. How this can be managed most efficiently in python?