pfalcon / picotui

Lightweight, pure-Python Text User Interface (TUI) widget toolkit with minimal dependencies. Dedicated to the Pycopy project.
https://github.com/pfalcon/pycopy
MIT License
811 stars 70 forks source link

Fix NoneType error when switching between widgets #69

Open lamasters opened 2 years ago

lamasters commented 2 years ago

Occasionally move_focus throws an error for trying to add int and NoneType. This seems to correlate to first launch an app or refocusing. This will ignore the move if the focus is not properly set.