Tkinter 中按类别排序的列表?
我正在构建一个图形程序,需要在用户计算机和远程服务器上显示文件。我正在使用 Tkinter,而且我绝对是这个工具包的新手。我希望将文件显示在一个类似于 Windows 中“详细信息”视图的框中,以便每个文件都有几个类别的信息(例如名称、类型、大小、权限等),并且以便列表可以按类别、升序或降序排序。
我可以使用 Tkinter 中的哪些对象(如果有)来完成此任务?是否有教程或现有项目可以实现与 Tkinter 类似的功能?
我不确定我的描述是否有意义,所以这是我想要的屏幕截图:
I'm building a graphical program that will need to show files on both the user's computer and on a remote server. I'm using Tkinter, and I'm definitely a novice with this toolkit. I want to have the files displayed in a box similar to what you would get from a "Details" view in Windows, so that each file has several categories of info(think name, type, size, permissions, etc.) about it and so that the list can be sorted by category, ascending or descending.
What objects in Tkinter (if any) could I use to accomplish this? Is there a tutorial or an existing project that implements something similar with Tkinter?
I'm not sure if my description makes sense, so here's a screenshot of what I want:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TreeView 小部件应该可以帮助您
是的,所以已经有一个关于这个主题的
您应该能够从这些指针开始
TreeView widget should help you
Yeah , So already has one on this topic
You should be able to get started from these pointers