MyreMylar / pygame_gui

A GUI system for pygame.
MIT License
684 stars 78 forks source link

UITextEntryLine acceps a Tuple in relative_rect but crashes since its expecting a pygame.Rect #547

Closed jmmalqui closed 6 months ago

jmmalqui commented 6 months ago

UITextEntryLine acceps a Tuple in relative_rect but crashes since its expecting a pygame.Rect by calling its .size attribute.

AttributeError: 'Tuple' object has no attribute 'size'

Steps to reproduce the behaviour:

  1. Pass a Tuple in the relative_rect attribute of pygame_gui.elements.UITextEntryLine.

The element should handle correctly the data type of relative_rect and not try to get its .size attribute since it is not a pygame.Rect.