Closed SnakesAndLadders closed 2 years ago
Happening the same with me
OS: MacOS 10.15.2 Library Version: py-cui==0.1.4 Python Version: Python 3.9.6
EDIT: Fixed it by using text_block.set_text('')
instead of text_block.clear()
Yes that is how I got around the issue as well. It is a an effective work-around.
Thanks for the report! I believe I have fixed this with: 9084422ab44793e77a39e97840c84b96d76526f6. The fix will be included in the next release of the library
When a text block is scrolled past the first page of text and then a .clear() is run on that widget you get a 'list index out of range' error.
To Reproduce Steps to reproduce the behavior:
Output
Expected behavior The text_block should be cleared of contents.
*Environment:*