A sorted and filtered treemodel in Python Gtk+3..?

痞子三分冷 提交于 2019-12-03 14:34:10
>>> from gi.repository import Gtk
>>> mymodel = Gtk.ListStore()
>>> Gtk.TreeModelSort(model=mymodel)
<TreeModelSort object at 0x1d4d190 (GtkTreeModelSort at 0x1f0d3f0)>

In my opinion PyGObject is not ready yet. It has no browsable documentation, some things are not instrospected yet and in particular this:

  • Sometimes a widget work with Gtk.MyWidget(attr=foo), like this one.
  • Sometimes with Gtk.MyWidget.new_with_label('Foo'), like buttons. Yes, Gtk.MyWidget(label='Foo') doesn't work.

Kind regards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!