summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Python/interface.tmpl
blob: b3596a8dbd7f43ad3cd937e0c01011f4c5a4c20c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<%inherit file="/class.tmpl"/>
<%block name="synopsis">
  <synopsis><code>
from gi.repository import ${namespace.name}

${formatter.to_underscores(node).lower()} = ${namespace.name}.${node.name}(\
% for ix, property_ in enumerate(node.properties):
% if property_.construct or property_.construct_only or property_.writable:
<link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\
% if ix != len(node.properties) - 1:
, \
% endif
% endif
% endfor
)\
  </code></synopsis></%block>