Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing coordinate-like to UILabel results in crash. #657

Open
gbbofh opened this issue Nov 11, 2024 · 0 comments
Open

Passing coordinate-like to UILabel results in crash. #657

gbbofh opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gbbofh
Copy link

gbbofh commented Nov 11, 2024

Description
Passing a Coordinate-like to UILabel.__init__ results in an exception.

To Reproduce
Steps to reproduce the behaviour:

  1. my_label = pygame_gui.elements.UILabel((5,10), 'Example')
  2. Observe that this generates an exception on ui_label.py:67

Expected behaviour
A label should be created, as the parameter relative_rect is permitted to be either a Rect-like, or Coordinate-like.

Platform and software (please complete the following information):

  • OS: Windows, WSL v2 running Ubuntu
  • Pygame GUI version: pygame-gui-0.6.12
  • Pygame version: pygame-ce 2.5.2 (SDL 2.30.8, Python 3.8.10)

Additional context
I have already submitted a PR to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant