robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
455 stars 114 forks source link

Arrow Keys Cause Enterbox to Return NoneType #170

Open jpfischbein opened 4 years ago

jpfischbein commented 4 years ago

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 commented 4 years ago

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 commented 11 months ago

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

tomhea commented 11 months ago

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