mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #795] Question: Implementing Progress bar Draw Method #583
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#583
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @akurdunkar on GitHub (Jan 17, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/795
Hi, I have implemented a progress bar primitive. It works as follows:
progressFuncwhich returns the values that you need to show (e.g BarTitle, BarText, percentage)As far as I have read the documentation and used
tview, theDrawMethod is called upon Events (correct me if I am wrong). I wanted to Draw only the progress bar primitive every second. Upon usingQueueUpdateandQueueUpdateDrawthe whole "screen" seems to stop responding maybe it's because:So I have been left but no choice but to Draw the whole app every time. like so:
This seems to work fine. I have been using this for a long time. But I keep wondering is this the right way or if is there a more elegant way to do this. Any help would be welcome. Thanks for your time.
@akurdunkar commented on GitHub (Jan 26, 2023):
I see. Thanks for the help. 🤝🏽