pygobject / pgi-docgen

API Documentation Generator for PyGObject
https://lazka.github.io/pgi-docs/
GNU Lesser General Public License v2.1
127 stars 36 forks source link

documentation for GtkSource missing? #87

Closed ishankhare07 closed 9 years ago

ishankhare07 commented 9 years ago

where is the documentation for GtkSource

from gi.repository import GtkSource

also i cannot find any documentation for gi.repository

correct me if I'm missing something

lazka commented 9 years ago

This? https://lazka.github.io/pgi-docs/#GtkSource-3.0

ishankhare07 commented 9 years ago

Yes that's exactly what i wanted, thanks a lot! I'm sorry on my part, I didn't see that search was case sensitive

lazka commented 9 years ago

No problem, thanks for the report.

ishankhare07 commented 9 years ago

can you provide details of what arguments (**kwargs) are given to the constructor, or some other way. basically I want to bind a GtkSource.View to the Completer, if I do:

completer = GtkSource.Completion()
completer.props.view = builder.get_object('my_source_view')

I get get an error :

Warning: g_object_set_property: construct property "view" for object 'GtkSourceCompletion' can't be set after construction
ishankhare07 commented 9 years ago

I figured it out myself

completer = GtkSource.Completion(view=builder.get_object('my_source_view'))
lazka commented 9 years ago

Yeah. If you look at the property list: https://lazka.github.io/pgi-docs/#GtkSource-3.0/classes/Completion.html#properties the flags column contains r/w/c, "c" in this case means it can only be set during construction.

The **kargs of each GObject.Object subclass takes property keys and values.