You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new_rect = rotated_image.get_rect(center = image.get_rect(topleft = topleft).center)
DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python.
The text was updated successfully, but these errors were encountered:
Line 123 should be: blitRotateCenter(win, self.img, (self.x, round(self.y)), self.tilt)
because the blit function below where you are getting the error from requires ints. If you print out the value of topleft when debugging, you will notice that the y value is always Num.0 or Num.5, so round or int can be used. So, it is quite easy to fix if you know where to look; bugs are rarely where the code says they are
new_rect = rotated_image.get_rect(center = image.get_rect(topleft = topleft).center)
DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python.
The text was updated successfully, but these errors were encountered: