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

TypeError: unsuported operand type(s) for +: 'Keys' and 'str' #552

Open
Seb0PL opened this issue Jun 19, 2023 · 1 comment
Open

TypeError: unsuported operand type(s) for +: 'Keys' and 'str' #552

Seb0PL opened this issue Jun 19, 2023 · 1 comment

Comments

@Seb0PL
Copy link

Seb0PL commented Jun 19, 2023

File "main.py", line 92, in <module>
  rebind(Keys.scroll_down, 's')
File "/ursina/input_handler.py", line 117, in rebind
  bind(to_key, from_key)
File "/ursina/input_handler.py", line 102, in bind
  rebinds[original_key + ' hold'] = alternative_key + ' hold'
TypeError: unsuported operand type(s) for +: 'Keys' and 'str'

It seems this does not work as expected 🤨

The walk around is for this is to use the string constant (as it is defined in the input_handler.py file).

@IndividualCoder
Copy link

can you give out the code? i'll see if i can help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants