bczsalba / pytermgui

Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
https://ptg.bczsalba.com
MIT License
2.25k stars 56 forks source link

How do I update the values screen #138

Closed Mahheshh closed 7 months ago

Mahheshh commented 9 months ago

I have list of tasks, When I add new task to the list of tasks, I want my new results to be on the screen

bczsalba commented 7 months ago

Hey!

You either poll for tasks in the get_lines method, or update the list of tasks internal to the widget that get looked at during drawing. I'd say the second one is more performant, though it depends on your current structure.