有没有办法用 PyGtk 制作不确定的复选按钮?

Is there a way to make an indeterminate checkbutton with PyGtk?

我正在设计一个 GUI,其中有一个可检查项列表,其中还有一个可检查项子列表。如果仅选中某些子项,我想在父复选框中以图形方式表示。我为此搜索了 Google 数小时,唯一的文档解释了如何设置可能的按钮样式。 Gtk 中有没有一种方法可以干净利落地做到这一点?

Checkbutton 的父级 ToggleButtoninconsistent property, which is what you are looking for (screenshot)