gpt4 book ai didi

python - 带有 PyGObject 自省(introspection) Gtk+ 3 的 GenericTreeModel?

转载 作者:太空宇宙 更新时间:2023-11-03 13:03:41 24 4
gpt4 key购买 nike

我正在尝试基于 Python3 中的 GenericTreeModel 编写我自己的 Gtk+3-TreeModel,但出现此错误:

AttributeError: 'gi.repository.Gtk' object has no attribute 'GenericTreeModel'

GenericTreeModel 是否已重命名?

提前致谢。

最佳答案

PyGObject 最近通过 pygtkcompat 获得了 GenericTreeModel 支持.

这是 3.7.90 中的新功能在 3.7.91 中进行了修复

所以现在您应该能够使用兼容模块迁移 GenericTreeModels,至少作为一个开始。

关于python - 带有 PyGObject 自省(introspection) Gtk+ 3 的 GenericTreeModel?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11025700/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com