Widget.getTemplateChild

Fetch an object build from the template XML for widget_type in this widget instance.

This will only report children which were previously declared with gtk.widget_class.WidgetClass.bindTemplateChildFull or one of its variants.

This function is only meant to be called for code which is private to the widget_type which declared the child and is meant for language bindings which cannot easily make use of the GObject structure offsets.

class Widget
getTemplateChild

Parameters

widgetType gobject.types.GType

The gobject.types.TYPE_FLAG_RESERVED_ID_BIT to get a template child for

name string

The “id” of the child defined in the template XML

Return Value

Type: gobject.object.ObjectG

The object built in the template XML with the id name