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

Added Special Character Support #369

Closed
wants to merge 1 commit into from
Closed

Added Special Character Support #369

wants to merge 1 commit into from

Conversation

16bitmood
Copy link
Contributor

Special character support for textbox2d (like: '!@#$%^&*()')

Copy link
Contributor

@skoudoro skoudoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @16bitmood,

Thank you for adding this feature! we will look into it and get back to you.

Copy link
Member

@Nibba2018 Nibba2018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @16bitmood , thanks for creating this PR, I have tested various special characters and they work fine on TextBox2D.

But I don't understand your unit test. Please be a bit more elaborate. For me a window pops up and then quickly closes without any keystrokes.

I would suggest you to add some assertions at the end to test whether the key presses are correctly registered/saved or not. For e.g:

  • type a string including printable characters.
  • close the window.
  • then assert if the message parameter contains the same string of the characters or not.

Thanks!

Comment on lines +1904 to 1907

def __init__(self, center=(0, 0),
initial_value=50, min_value=0, max_value=100,
length=200, line_width=5,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these extra new lines necessary?

Comment on lines +2253 to 2255

def __init__(self, line_width=5, inner_radius=0, outer_radius=10,
handle_side=20, center=(450, 300), length=200,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above and below few new lines.

@16bitmood 16bitmood closed this Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants