我正在尝试基于 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/