How can I make both row and col coordinates to be the size of the window?
Does this help?
Snippet:
def coordinate(self, row, col):
"""
Gets the coordinates of a certain block.
"""
if row < 1 or row > self.blocky or col < 1 or col > self.blockx:
raise ValueError("Both the row and the column must fall inside the acceptable range.")
x = col * (self.width / self.blockx)
y = row * (self.height / self.blocky)
print(f"Coordinates for block ({row}, {col}): ({x}, {y})")
return x, y