mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #764] Feature Request: A demo or a doc on how to combine different widgets together #558
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#558
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 @jsanant on GitHub (Oct 5, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/764
I have created a widget
TreeViewand I am trying to show it on the terminal using theGridlayout.I have played around with the code that is given in the Wiki sections for both the widgets but I unable to stitch things together.
@rivo commented on GitHub (Oct 5, 2022):
I'm not really sure I understand what you're trying to achieve. What it is exactly that you want to do that's not working at the moment? Is the picture that you're posting what it should look like? Can you post the code that you already have?
@jsanant commented on GitHub (Oct 5, 2022):
My bad! Let me add the code.
I am trying to fetch a list of directories using
TreeViewand print them on screen in aGridlayout.@jsanant commented on GitHub (Oct 5, 2022):
And also how do I debug the application? Logging works but it overlaps with the application.
@rivo commented on GitHub (Oct 6, 2022):
Your code didn't compile. I'm not sure why you have a
fmt.Sprintf(tree)in there. If you replace the following part:then it should work.
Debugging is a bit difficult with this kind of application. I work with VS Code and if I need to debug a
tviewapplication, I build it and then attach the debugger to its process. You should be able to google how to do this.@jsanant commented on GitHub (Oct 6, 2022):
Ah I see the mistake I made, thanks a lot @rivo ! :)
Is there a Slack channel where I can ask such silly doubts?
@rivo commented on GitHub (Oct 6, 2022):
It's ok to post them here.