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

Arrow Keys Cause Enterbox to Return NoneType #170

Open
jpfischbein opened this issue Apr 3, 2020 · 3 comments
Open

Arrow Keys Cause Enterbox to Return NoneType #170

jpfischbein opened this issue Apr 3, 2020 · 3 comments

Comments

@jpfischbein
Copy link

When using an enterbox(), if the user uses arrow keys to navigate the text within the text field, an AttributeError is thrown and the return is NoneType. Stacktrace:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\Joel\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 1883, in __call__
    return self.func(*args)
  File "C:\Users\Joel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\easygui\boxes\base_boxes.py", line 27, in tabLeft
    boxRoot.event_generate("<Shift-Tab>")
AttributeError: 'NoneType' object has no attribute 'event_generate'
@CheongKoo
Copy link

I am getting the same error on my Windows PC running python. All the arrow keys still work in the text box except for the exception being thrown whenever I press the arrow keys.
Thank you.

@wbrearle
Copy link

wbrearle commented Oct 5, 2023

I also am seeing this error. Is there a fix out somewhere? Or at least a way to suppress this error message?

@tomhea
Copy link
Contributor

tomhea commented Oct 6, 2023

I found a solution to that problem (PR #222).
@zadacka

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

4 participants