应如何在 Tkinter 中显示可滚动电子表格?

编程入门 行业动态 更新时间:2024-10-26 17:31:18
本文介绍了应如何在 Tkinter 中显示可滚动电子表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

目前我正在使用 Treeview.问题是我使用了相当大的数据集.为了使 GUI 不是很大,我限制了 Treeview 的大小以适应窗口并添加了垂直和水平滚动条.它完全按照我想要的方式显示数据,但是在每个方向滚动时都存在速度问题.是否有更好/更快的方式来显示类似电子表格的数据.

Currently I am using a Treeview. The problem is that I am using quite a large data set. So that the GUI isn't massive, I've limited the size of the Treeview to fit the window and added vertical and horizontal scrollbars. It displays the data exactly how I want, however there are speed issues when scrolling in each direction. Is there a better/faster way to display spreadsheet-like data.

推荐答案

我最终使用了 pandastable (https://github/dmnfarrell/pandastable).因为它提供了一种以类似电子表格的方式显示数据的快速简便的方法.它还提供了很多内置功能,例如:对列进行排序、过滤和应用函数

I ended up using pandastable (https://github/dmnfarrell/pandastable). As it provided a quick and easy way of displaying data in a spreadsheet like manner. It also provides a lot of built in functionality, such as: sorting, filtering and applying functions to columns

这篇关于应如何在 Tkinter 中显示可滚动电子表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 08:59:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1392008.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:电子表格   如何在   Tkinter

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!