wxPython中带有三态复选框的分层检查树控件? [英] Hierarchical checked tree control with tri-state checkboxes in wxPython?

查看:20
本文介绍了wxPython中带有三态复选框的分层检查树控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据标题,这可能吗?

三态,我的意思是父节点是:

By tri-state, I mean the parent node is:

  • 检查是否检查了所有孩子
  • 如果所有子项都未选中,则未选中
  • 灰色/填充,如果一些孩子被选中
  • Checked if all children are checked
  • Unchecked if all children are unchecked
  • Grey/Filled if some children are checked

我以前在 C# 中使用过它们,但找不到 wxPython 的等效控件/实现.

I have used them previously in C# but cannot find an equivalent control/implementation for wxPython.

推荐答案

你看 wx.lib.agw.CustomTreeCtrl?

我不确定它是否开箱即用,但它是用 Python 编写的,因此扩展它应该很容易.

I'm not sure it does tri-state out of the box, but it's written in Python, so it should be quite easy to extend it.

这篇关于wxPython中带有三态复选框的分层检查树控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆