PyGObject GTK+ 3 - Documentation?

前端 未结 5 1619
心在旅途
心在旅途 2021-01-30 11:17

PyGObject appears to have no real documentation. This tutorial is as close as it gets. I\'ve been struggling all morning simply trying to find a description of the arguments acc

5条回答
  •  萌比男神i
    2021-01-30 12:01

    use IPython

    In [1]: from gi.repository import Gtk
    In [2]: Gtk.Window()?
    Type:       GObjectMeta
    String Form:
    File:       /usr/lib/python3/dist-packages/gi/overrides/Gtk.py
    Docstring:  
    Constructor information:
     Definition:Gtk.Window(self, type=, **kwds)
    

    for more details

    In [3]: help(Gtk.Window())
    

提交回复
热议问题