Search code examples
pythondocumentationpygobject

Find / Generate documentation for Gtk, Gdk, GdkPixbuf,


Where can I find proper documentation on the Python objects Gtk, Gdk,... from gi.repository ? I'm stuck with using dir() and it's of the utmost annoyance...

To sum it up: heelp!

(NOTE: the pygtk doc is too outdated, I'm using pygobject)


Solution

  • I haven't found online documentation but you can use the help command from python interactive prompt, like:

    >>> import gi
    >>> help(gi)
    
    Help on package gi:
    
    NAME
        gi
    
    FILE
        /usr/lib/pymodules/python2.6/gtk-2.0/gi/__init__.py
    
    DESCRIPTION
    ...