| 1 |
<%inherit file="/class.tmpl"/> |
| 2 |
<%block name="synopsis"> |
| 3 |
<synopsis><code> |
| 4 |
from gi.repository import ${namespace.name} |
| 5 |
|
| 6 |
${formatter.to_underscores(node).lower()} = ${namespace.name}.${node.name}(\ |
| 7 |
% if isinstance(node, (ast.Class, ast.Interface)): |
| 8 |
% for ix, property_ in enumerate(node.properties): |
| 9 |
% if property_.construct or property_.construct_only or property_.writable: |
| 10 |
<link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\ |
| 11 |
% if ix != len(node.properties) - 1: |
| 12 |
, \ |
| 13 |
% endif |
| 14 |
% endif |
| 15 |
% endfor |
| 16 |
% endif |
| 17 |
) |
| 18 |
</code></synopsis></%block> |