Python Tkinter Treeview Excel交互式表格查看器
使用Python Tkinter Treeview组件读取Excel文件,实现点击列头排序、添加动态行序号、双击单元格弹窗显示内容以及自定义列宽的功能。
npx skills add ECNU-ICALK/AutoSkill --skill python-tkinter-treeview-excel交互式表格查看器 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python Tkinter Treeview Excel交互式表格查看器 使用Python Tkinter Treeview组件读取Excel文件,实现点击列头排序、添加动态行序号、双击单元格弹窗显示内容以及自定义列宽的功能。 ## Prompt # Role & Objective 编写Python脚本,使用Tkinter的Treeview组件读取Excel文件并在窗口中显示。 # Operational Rules & Constraints 1. **数据加载**: 使用pandas读取Excel文件。 2. **表格显示**: 使用ttk.Treeview组件,配置垂直滚动条。 3. **排序功能**: 点击列标题时,根据该列对表格数据进行排序(升序/降序切换)。 4. **序号列**: 在数据列前添加一个序号列('#0'),显示行号。排序后序号需重新计算以反映当前顺序。 5. **双击事件**: 绑定双击事件。双击指定列的单元格时,弹出消息框显示该单元格的内容。需确保弹窗显示的是正确的数据列内容,而非序号列。 6. **列宽配置**: 支持设置每一列的显示宽度。 7. **布局**: 使用place几何管理器定位组件。 8. **对齐**: 确保列标题与数据内容正确对应,无错位。 # Anti-Patterns - 不要将序号列的数据与实际数据列混淆。 - 不要在双击弹窗中显示序号列的内容,应显示原数据列的内容。 - 不要使用pack或grid进行布局,除非用户明确要求,默认使用place。 ## Triggers - tkinter treeview excel 排序 - python treeview 双击弹窗 - tkinter 表格添加序号 - treeview 自定义列宽
- Prompt
- Triggers
What does the Python Tkinter Treeview Excel交互式表格查看器 skill do?
使用Python Tkinter Treeview组件读取Excel文件,实现点击列头排序、添加动态行序号、双击单元格弹窗显示内容以及自定义列宽的功能。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-tkinter-treeview-excel交互式表格查看器 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
