easygui icon indicating copy to clipboard operation
easygui copied to clipboard

Arrow Keys Cause Enterbox to Return NoneType

Open jpfischbein opened this issue 4 years ago • 3 comments

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'

jpfischbein avatar Apr 03 '20 17:04 jpfischbein

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.

CheongKoo avatar Apr 18 '20 01:04 CheongKoo

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

wbrearle avatar Oct 05 '23 13:10 wbrearle

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

tomhea avatar Oct 06 '23 22:10 tomhea